Skip to content
Snippets Groups Projects
Commit 30aa6541 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Fix recursive call

parent d4c46d49
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -163,13 +163,17 @@ class Deployment < ActiveRecord::Base
def finished_at
return self.created_at if status.nil?
 
self.finished_at
read_attribute(:finished_at)
end
 
def formatted_deployment_time
def deployed_at
return unless success?
 
finished_at.to_time.in_time_zone.to_s(:medium)
finished_at
end
def formatted_deployment_time
deployed_at&.to_time&.in_time_zone&.to_s(:medium)
end
 
def has_metrics?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment