Ticket #1231: action_exempted.patch
| File action_exempted.patch, 0.9 kB (added by anonymous, 4 years ago) |
|---|
-
vendor/rails/actionpack/lib/action_controller/filters.rb
old new 338 338 339 339 def action_exempted?(filter) 340 340 case 341 when self.class.included_actions[filter]342 ! self.class.included_actions[filter].include?(action_name)343 when self.class.excluded_actions[filter]344 self.class.excluded_actions[filter].include?(action_name)341 when ia = self.class.included_actions[filter] 342 !ia.include?(action_name) 343 when ea = self.class.excluded_actions[filter] 344 ea.include?(action_name) 345 345 end 346 346 end 347 347 end