Class: Renalware::Pathology::CodeGroupPolicy
- Inherits:
-
BasePolicy
show all
- Defined in:
- app/policies/renalware/pathology/code_group_policy.rb
Instance Attribute Summary
#record, #user
Instance Method Summary
collapse
Methods inherited from BasePolicy
#contact_added?, #debug?, #index?, #initialize, #show?, #sort?
#index?, #initialize, #new?, #scope, #show?
Instance Method Details
#create? ⇒ Boolean
6
7
8
|
# File 'app/policies/renalware/pathology/code_group_policy.rb', line 6
def create?
user_is_super_admin?
end
|
#destroy? ⇒ Boolean
14
15
16
|
# File 'app/policies/renalware/pathology/code_group_policy.rb', line 14
def destroy?
create?
end
|
#edit? ⇒ Boolean
18
19
20
|
# File 'app/policies/renalware/pathology/code_group_policy.rb', line 18
def edit?
create?
end
|
#update? ⇒ Boolean
10
11
12
|
# File 'app/policies/renalware/pathology/code_group_policy.rb', line 10
def update?
create?
end
|