From 4810d5f5c4d2ba3899180c697990895a9660c759 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 8 Nov 2019 06:26:43 +0000 Subject: [PATCH] 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 --- app/models/time_entry.rb | 7 +++++-- 1 file 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