diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/filters.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/filters.rb b/actionpack/lib/action_controller/filters.rb index 02c705a2b4..1a2423b1e2 100644 --- a/actionpack/lib/action_controller/filters.rb +++ b/actionpack/lib/action_controller/filters.rb @@ -339,10 +339,10 @@ module ActionController #:nodoc: def action_exempted?(filter) case - when self.class.included_actions[filter] - !self.class.included_actions[filter].include?(action_name) - when self.class.excluded_actions[filter] - self.class.excluded_actions[filter].include?(action_name) + when ia = self.class.included_actions[filter] + !ia.include?(action_name) + when ea = self.class.excluded_actions[filter] + ea.include?(action_name) end end end |