Class: Core::Abilities::Base

Inherits:
Object
  • Object
show all
Extended by:
ClassMethods
Includes:
CanCan::Ability
Defined in:
app/api/core/abilities.rb

Direct Known Subclasses

Application, User

Defined Under Namespace

Modules: ClassMethods Classes: Recorder

Instance Method Summary collapse

Methods included from ClassMethods

recorder_helper

Constructor Details

#initialize(request) ⇒ Base

Returns a new instance of Base.



93
94
95
96
97
# File 'app/api/core/abilities.rb', line 93

def initialize(request)
  @request = request
  abilitise(:unregistered)
  abilitise(privilege) if registered?
end