Class: Renalware::UserPolicy
- Inherits:
-
BasePolicy
- Object
- ApplicationPolicy
- BasePolicy
- Renalware::UserPolicy
- Defined in:
- app/policies/renalware/user_policy.rb
Instance Attribute Summary
Attributes inherited from ApplicationPolicy
Instance Method Summary collapse
Methods inherited from BasePolicy
#contact_added?, #create?, #debug?, #destroy?, #index?, #initialize, #show?, #sort?
Methods inherited from ApplicationPolicy
#create?, #destroy?, #edit?, #index?, #initialize, #new?, #scope, #show?
Constructor Details
This class inherits a constructor from Renalware::BasePolicy
Instance Method Details
#update? ⇒ Boolean
5 6 7 |
# File 'app/policies/renalware/user_policy.rb', line 5 def update? super && !user_update_self? end |