From ec352604b8e6dece4aca3d1bedefe13ad6417fee Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Fri, 4 Dec 2020 01:12:26 -0800 Subject: [PATCH] Use `+=` instead of `<<` with frozen string --- app/controllers/admin/commercials_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/commercials_controller.rb b/app/controllers/admin/commercials_controller.rb index ee8cee00..ade59dc7 100644 --- a/app/controllers/admin/commercials_controller.rb +++ b/app/controllers/admin/commercials_controller.rb @@ -65,8 +65,8 @@ module Admin flash[:notice] = 'Successfully added materials.' else errors_text = '' - errors_text << 'Unable to find event with ID: ' + errors[:no_event].join(', ') + '. ' if errors[:no_event].any? - errors_text << 'There were some errors: ' + errors[:validation_errors].join('. ') if errors[:validation_errors].any? + errors_text += 'Unable to find event with ID: ' + errors[:no_event].join(', ') + '. ' if errors[:no_event].any? + errors_text += 'There were some errors: ' + errors[:validation_errors].join('. ') if errors[:validation_errors].any? flash[:error] = errors_text end