Class: Guts::IndexPolicy
- Inherits:
-
Struct
- Object
- Struct
- Guts::IndexPolicy
- Defined in:
- app/policies/guts/index_policy.rb
Overview
Index policy (headless)
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#index? ⇒ Boolean
Policy for index method.
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index
3 4 5 |
# File 'app/policies/guts/index_policy.rb', line 3 def index @index end |
#user ⇒ Object
Returns the value of attribute user
3 4 5 |
# File 'app/policies/guts/index_policy.rb', line 3 def user @user end |
Instance Method Details
#index? ⇒ Boolean
Policy for index method
6 7 8 |
# File 'app/policies/guts/index_policy.rb', line 6 def index? !user.nil? end |