Class: Renalware::Pathology::CodeGroupPolicy

Inherits:
BasePolicy show all
Defined in:
app/policies/renalware/pathology/code_group_policy.rb

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)


6
7
8
# File 'app/policies/renalware/pathology/code_group_policy.rb', line 6

def create?
  user_is_super_admin?
end

#destroy?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/policies/renalware/pathology/code_group_policy.rb', line 14

def destroy?
  create?
end

#edit?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/policies/renalware/pathology/code_group_policy.rb', line 18

def edit?
  create?
end

#update?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/policies/renalware/pathology/code_group_policy.rb', line 10

def update?
  create?
end