Class: Core::Abilities::User
Instance Method Summary collapse
-
#authenticated! ⇒ Object
Updates the abilities of the user based on the currently authenticated user instance.
Methods inherited from Base
Methods included from Base::ClassMethods
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 |