Method: Authority::Authorizer#resource
- Defined in:
- lib/authority/authorizer.rb
#resource ⇒ Object (readonly)
The base Authorizer class, from which all the authorizers in an app will descend. Provides the authorizer with both class and instance methods like ‘updatable_by?(user)`. Exactly which methods get defined is determined from `config.abilities`; the class is evaluated after any user-supplied config block is run in order to make that possible.
10 11 12 |
# File 'lib/authority/authorizer.rb', line 10 def resource @resource end |