Class: Core::Abilities::User

Inherits:
Base
  • Object
show all
Defined in:
app/api/core/abilities.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Base::ClassMethods

#recorder_helper

Constructor Details

This class inherits a constructor from Core::Abilities::Base

Instance Method Details

#authenticated!Object

Updates the abilities of the user based on the currently authenticated user instance. If the user unauthenticated then the API remains read-only.



135
136
137
# File 'app/api/core/abilities.rb', line 135

def authenticated!
  abilitise(:authenticated) if @request.user.present?
end