Class: Vet360Policy
- Inherits:
-
Struct
- Object
- Struct
- Vet360Policy
- Defined in:
- app/policies/vet360_policy.rb
Instance Attribute Summary collapse
-
#user ⇒ Object
Returns the value of attribute user.
-
#vet360 ⇒ Object
Returns the value of attribute vet360.
Instance Method Summary collapse
Instance Attribute Details
#user ⇒ Object
Returns the value of attribute user
3 4 5 |
# File 'app/policies/vet360_policy.rb', line 3 def user @user end |
#vet360 ⇒ Object
Returns the value of attribute vet360
3 4 5 |
# File 'app/policies/vet360_policy.rb', line 3 def vet360 @vet360 end |
Instance Method Details
#access? ⇒ Boolean
4 5 6 |
# File 'app/policies/vet360_policy.rb', line 4 def access? user.vet360_id.present? end |
#military_access? ⇒ Boolean
8 9 10 |
# File 'app/policies/vet360_policy.rb', line 8 def military_access? user.edipi.present? end |