Module: Authorizable::Controller::ClassMethods
- Defined in:
- lib/authorizable/controller.rb
Instance Method Summary collapse
-
#authorizable(config = {}) ⇒ Object
sets up a before filter that will redirect if the permission condition fails.
Instance Method Details
#authorizable(config = {}) ⇒ Object
sets up a before filter that will redirect if the permission condition fails
46 47 48 49 50 51 52 |
# File 'lib/authorizable/controller.rb', line 46 def (config = {}) Authorizable::Controller.parameters_are_valid?(config) self. = config self.send(:before_filter, :authorizable_authorized?) end |