diff --git a/app/helpers/deactivate_confirm_helper.rb b/app/helpers/deactivate_confirm_helper.rb index 32c3bc501..a7e9edb19 100644 --- a/app/helpers/deactivate_confirm_helper.rb +++ b/app/helpers/deactivate_confirm_helper.rb @@ -1,8 +1,8 @@ module DeactivateConfirmHelper def affected_title(affected_logs, affected_locations) title_parts = [] - title_parts << pluralize(affected_logs.count, "log") if affected_logs.count > 0 - title_parts << pluralize(affected_locations.count, "location") if affected_locations.count > 0 + title_parts << pluralize(affected_logs.count, "log") if affected_logs.count.positive? + title_parts << pluralize(affected_locations.count, "location") if affected_locations.count.positive? "This change will affect #{title_parts.join(' and ')}." end end