summaryrefslogtreecommitdiff
path: root/app/models/deployment.rb
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-10-12 15:21:01 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-10-14 11:07:50 +0200
commit35e2315a66e34f290230720cfa74240fd5532970 (patch)
treebd390ac1bd937a2899c0d7534e5cf368698f6340 /app/models/deployment.rb
parent4b40027b50a2be4bad76b0a4a6a5e92c0de14255 (diff)
downloadgitlab-ce-35e2315a66e34f290230720cfa74240fd5532970.tar.gz
Minor style improvement
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r--app/models/deployment.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb
index f63cc179b9e..3d9902d496e 100644
--- a/app/models/deployment.rb
+++ b/app/models/deployment.rb
@@ -84,6 +84,10 @@ class Deployment < ActiveRecord::Base
take
end
+ def formatted_deployment_time
+ created_at.to_time.in_time_zone.to_s(:medium)
+ end
+
private
def ref_path