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