Fixed: undefined method / for nil:NilClass

This commit is contained in:
Vokhmin Alexey V 2013-09-27 17:19:09 +04:00
parent 17cbeb3d7f
commit 0ad1555fc2
1 changed files with 1 additions and 1 deletions

View File

@ -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?