Class: Renalware::Events::EventPolicy

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

Instance Attribute Summary

Attributes inherited from ApplicationPolicy

#record, #user

Instance Method Summary collapse

Methods inherited from BasePolicy

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

Methods inherited from ApplicationPolicy

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

Constructor Details

This class inherits a constructor from Renalware::BasePolicy

Instance Method Details

#destroy?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/policies/renalware/events/event_policy.rb', line 14

def destroy?
  false
end

#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