Module: Permissions::Authorizable

Defined in:
lib/permissions.rb

Instance Method Summary collapse

Instance Method Details

#authorize_for?(key, *args) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/permissions.rb', line 9

def authorize_for?(key, *args)
  permissions.authorize?(key, self, *args)
end

#permissionsObject



5
6
7
# File 'lib/permissions.rb', line 5

def permissions
  @permissions
end