Class: AuditPolicy

Inherits:
ResourcePolicy show all
Defined in:
app/policies/audit_policy.rb

Instance Attribute Summary

Attributes inherited from ResourcePolicy

#resource, #user

Instance Method Summary collapse

Methods inherited from ResourcePolicy

#authorize!, #destroy?, #initialize, #update?

Constructor Details

This class inherits a constructor from ResourcePolicy

Instance Method Details

#show?Boolean


4
5
6
# File 'app/policies/audit_policy.rb', line 4

def show?
  user.admin?
end