Method: Authority::Authorizer#default
- Defined in:
- lib/authority/authorizer.rb
#default(adjective, user, options = {}) ⇒ Object
the instance default method calls the class default method
22 23 24 25 |
# File 'lib/authority/authorizer.rb', line 22 def default(adjective, user, = {}) = self.class.send(:user_and_maybe_options, user, ) self.class.send(:"#{adjective}_by?", *) end |