Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 1324

Show
Ignore:
Timestamp:
05/19/05 18:54:16 (3 years ago)
Author:
david
Message:

Faster action_exempted? #1231 [skaen]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r1322 r1324  
    11*SVN* 
     2 
     3* Added Serbia and Montenegro to the country_select #1239 [todd@robotcoop.com] 
    24 
    35* Fixed Request#remote_ip in testing #1251 [bitsweat] 
  • trunk/actionpack/lib/action_controller/filters.rb

    r1315 r1324  
    340340        def action_exempted?(filter) 
    341341          case 
    342             when self.class.included_actions[filter] 
    343               !self.class.included_actions[filter].include?(action_name) 
    344             when self.class.excluded_actions[filter]  
    345               self.class.excluded_actions[filter].include?(action_name) 
     342            when ia = self.class.included_actions[filter] 
     343              !ia.include?(action_name) 
     344            when ea = self.class.excluded_actions[filter]  
     345              ea.include?(action_name) 
    346346          end 
    347347        end