Class: Core::Abilities::Base
- Inherits:
-
Object
- Object
- Core::Abilities::Base
- Extended by:
- ClassMethods
- Includes:
- CanCan::Ability
- Defined in:
- app/api/core/abilities.rb
Direct Known Subclasses
Defined Under Namespace
Modules: ClassMethods Classes: Recorder
Instance Method Summary collapse
-
#initialize(request) ⇒ Base
constructor
A new instance of Base.
Methods included from ClassMethods
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 |