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


87
88
89
90
91
# File 'app/api/core/abilities.rb', line 87

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