Class: CoePolicy
- Inherits:
-
Struct
- Object
- Struct
- CoePolicy
- Defined in:
- app/policies/coe_policy.rb
Instance Attribute Summary collapse
-
#coe ⇒ Object
Returns the value of attribute coe.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#coe ⇒ Object
Returns the value of attribute coe
3 4 5 |
# File 'app/policies/coe_policy.rb', line 3 def coe @coe end |
#user ⇒ Object
Returns the value of attribute user
3 4 5 |
# File 'app/policies/coe_policy.rb', line 3 def user @user end |
Instance Method Details
#access? ⇒ Boolean
4 5 6 |
# File 'app/policies/coe_policy.rb', line 4 def access? user.loa3? && user.edipi.present? end |