Class: CafeCar::Attributes::Actions
- Inherits:
-
Struct
- Object
- Struct
- CafeCar::Attributes::Actions
- Defined in:
- lib/cafe_car/attributes.rb
Overview
Reads the policy's three host-overridable action lists through one object.
Instance Attribute Summary collapse
-
#policy ⇒ Object
Returns the value of attribute policy.
Instance Method Summary collapse
Instance Attribute Details
#policy ⇒ Object
Returns the value of attribute policy
41 42 43 |
# File 'lib/cafe_car/attributes.rb', line 41 def policy @policy end |
Instance Method Details
#bulk ⇒ Object
44 |
# File 'lib/cafe_car/attributes.rb', line 44 def bulk = policy.permitted_bulk_actions |
#collection ⇒ Object
43 |
# File 'lib/cafe_car/attributes.rb', line 43 def collection = policy.permitted_collection_actions |
#member ⇒ Object
42 |
# File 'lib/cafe_car/attributes.rb', line 42 def member = policy.permitted_member_actions |