Method: Canned::ControllerExt::ClassMethods#unrestricted

Defined in:
lib/canned/controller_ext.rb

#unrestricted(*_excluded) ⇒ Object

Removes protection for the especified controller actions.

Parameters:

  • _excluded (splat)

    List of actions to be excluded.



110
111
112
113
# File 'lib/canned/controller_ext.rb', line 110

def unrestricted(*_excluded)
  self._cn_excluded ||= []
  self._cn_excluded.push(*(_excluded.collect &:to_sym))
end