@@ -141,10 +141,10 @@ def show_pop_hints
141141 authorize! :manage , :all
142142
143143 unless setup_display_of_pop_hints (
144- FrequentUnsuccessfulLevelSource ,
145- lambda { |idx , restriction | show_pop_hints_path idx , restriction } )
144+ FrequentUnsuccessfulLevelSource ,
145+ lambda { |idx , restriction | show_pop_hints_path idx , restriction } )
146146 redirect_to frequent_unsuccessful_level_sources_path ,
147- notice : "No more #{ @restriction && LevelSourceHint ::USER_VISIBLE_NAMES [ @restriction ] } hints to review."
147+ notice : "No more #{ @restriction && LevelSourceHint ::USER_VISIBLE_NAMES [ @restriction ] } hints to review."
148148 end
149149 end
150150
@@ -163,20 +163,20 @@ def add_pop_hint_per_level
163163 render 'add_pop_hint'
164164 else
165165 redirect_to frequent_unsuccessful_level_sources_path ,
166- notice : 'No more hints are needed for the level you chose. Please select another.'
166+ notice : 'No more hints are needed for the level you chose. Please select another.'
167167 end
168168 end
169169
170170 def show_pop_hints_per_level
171171 authorize! :manage , :all
172172
173173 if setup_display_of_pop_hints (
174- FrequentUnsuccessfulLevelSource . where ( level_id : params [ :level_id ] . to_i ) ,
175- lambda { |idx , restriction | show_pop_hints_per_level_path ( params [ :level_id ] . to_i , idx , restriction ) } )
174+ FrequentUnsuccessfulLevelSource . where ( level_id : params [ :level_id ] . to_i ) ,
175+ lambda { |idx , restriction | show_pop_hints_per_level_path ( params [ :level_id ] . to_i , idx , restriction ) } )
176176 render 'show_pop_hints'
177177 else
178178 redirect_to frequent_unsuccessful_level_sources_path ,
179- notice : "No more #{ @restriction && LevelSourceHint ::USER_VISIBLE_NAMES [ @restriction ] } hints to review for the chosen level."
179+ notice : "No more #{ @restriction && LevelSourceHint ::USER_VISIBLE_NAMES [ @restriction ] } hints to review for the chosen level."
180180 end
181181 end
182182
0 commit comments