Class: Renalware::Events::EventPolicy

Inherits:
BasePolicy show all
Defined in:
app/policies/renalware/events/event_policy.rb

Direct Known Subclasses

BiopsyPolicy, SimplePolicy, SwabPolicy

Instance Attribute Summary

Attributes inherited from ApplicationPolicy

#record, #user

Instance Method Summary collapse

Methods inherited from BasePolicy

#contact_added?, #create?, #debug?, #destroy?, #index?, #initialize, #show?, #sort?

Methods inherited from ApplicationPolicy

#create?, #destroy?, #index?, #initialize, #new?, #scope, #show?

Constructor Details

This class inherits a constructor from Renalware::BasePolicy

Instance Method Details

#edit?Boolean Also known as: update?

The default Event is not editable. See SwabPolicy for an example of enabling editing.

Returns:

  • (Boolean)


9
10
11
# File 'app/policies/renalware/events/event_policy.rb', line 9

def edit?
  false
end