diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 06:26:43 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 06:26:43 +0000 |
commit | 4810d5f5c4d2ba3899180c697990895a9660c759 (patch) | |
tree | f7f989073b3e3d3351d1b964fd2373f851c982cd /app/models | |
parent | ea859aedca167730d2c64bb31e5f256875ff39e0 (diff) | |
download | redmine-4810d5f5c4d2ba3899180c697990895a9660c759.tar.gz redmine-4810d5f5c4d2ba3899180c697990895a9660c759.zip |
cleanup: rubocop: fix Layout/AlignArguments in app/models/time_entry.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18948 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/time_entry.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb index e376e0ffd..60bbf8ec5 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -136,8 +136,11 @@ class TimeEntry < ActiveRecord::Base if hours_changed? && max_hours > 0.0 logged_hours = other_hours_with_same_user_and_day if logged_hours + hours > max_hours - errors.add :base, I18n.t(:error_exceeds_maximum_hours_per_day, - :logged_hours => format_hours(logged_hours), :max_hours => format_hours(max_hours)) + errors.add( + :base, + I18n.t(:error_exceeds_maximum_hours_per_day, + :logged_hours => format_hours(logged_hours), + :max_hours => format_hours(max_hours))) end end end |