Class: Renalware::HD::SessionPolicy

Inherits:
BasePolicy show all
Defined in:
app/policies/renalware/hd/session_policy.rb

Overview

More liberal access is provided in the STI-specific policy e.g. ClosedSessionPolicy This policy exists mainly for index? because when all sessions are loaded (e.g. in an #all query) Session is their common ancestor.

Instance Attribute Summary

Attributes inherited from ApplicationPolicy

#record, #user

Instance Method Summary collapse

Methods inherited from BasePolicy

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

Methods inherited from ApplicationPolicy

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

Constructor Details

This class inherits a constructor from Renalware::BasePolicy

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'app/policies/renalware/hd/session_policy.rb', line 21

def create?
  false
end

#destroy?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/policies/renalware/hd/session_policy.rb', line 9

def destroy?
  false
end

#edit?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/policies/renalware/hd/session_policy.rb', line 13

def edit?
  false
end

#update?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'app/policies/renalware/hd/session_policy.rb', line 17

def update?
  false
end