protected Method

ClassMethods.remove_actions_from_included_actions!(filters,*actions)

There's no documentation for this item.

Source Code

# File action_controller/filters.rb, line 639
def remove_actions_from_included_actions!(filters,*actions)
  actions = actions.flatten.map(&:to_s)
  updated_hash = filters.inject(read_inheritable_attribute('included_actions')||{}) do |hash,filter|
    ia = (hash[filter] || []) - actions
    ia.empty? ? hash.delete(filter) : hash[filter] = ia
    hash
  end
  write_inheritable_attribute('included_actions', updated_hash)
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.