public Method

ClassMethods.filter_excluded_from_action?(filter,action)

Returns true if the filter is excluded from the given action

Source Code

# File action_controller/filters.rb, line 383
def filter_excluded_from_action?(filter,action) #:nodoc:
  case
  when ia = included_actions[filter]
    !ia.include?(action)
  when ea = excluded_actions[filter]
    ea.include?(action)
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.