Use %w string array syntax to comply with the 140 char line limit

This commit is contained in:
Bertocq
2017-09-20 16:07:19 +02:00
parent 33c687ffec
commit 12658e33a9

View File

@@ -25,7 +25,7 @@ module AdminHelper
end
def menu_polls?
["polls", "questions", "officers", "booths", "officer_assignments", "booth_assignments", "recounts", "results", "shifts"].include? controller_name
%w[polls questions officers booths officer_assignments booth_assignments recounts results shifts].include? controller_name
end
def menu_profiles?
@@ -39,7 +39,7 @@ module AdminHelper
def menu_customization?
["pages", "images", "content_blocks"].include? controller_name
end
def official_level_options
options = [["", 0]]
(1..5).each do |i|