Fixed: undefined method / for nil:NilClass
This commit is contained in:
parent
17cbeb3d7f
commit
0ad1555fc2
|
@ -372,7 +372,7 @@ class BuildList < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def human_duration
|
||||
I18n.t("layout.build_lists.human_duration", {:hours => (duration/3600).to_i, :minutes => (duration%3600/60).to_i})
|
||||
I18n.t("layout.build_lists.human_duration", {:hours => (duration.to_i/3600).to_i, :minutes => (duration.to_i%3600/60).to_i})
|
||||
end
|
||||
|
||||
def in_work?
|
||||
|
|
Loading…
Reference in New Issue