1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-06 09:03:25 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-08 06:26:43 +00:00
parent ea859aedca
commit 4810d5f5c4

View File

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