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, options = {})
  user_and_maybe_options = self.class.send(:user_and_maybe_options, user, options)
  self.class.send(:"#{adjective}_by?", *user_and_maybe_options)
end