protected Method

ClassMethods.condition_hash(filters, *actions)

There's no documentation for this item.

Source Code

# File action_controller/filters.rb, line 620
def condition_hash(filters, *actions)
  actions = actions.flatten.map(&:to_s)
  filters.inject({}) { |h,f| h.update( f => (actions.blank? ? nil : actions)) }
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.