Class: CarloadDashboardPolicy
- Inherits:
-
Struct
- Object
- Struct
- CarloadDashboardPolicy
- Defined in:
- app/policies/carload_dashboard_policy.rb
Instance Attribute Summary collapse
-
#dashboard ⇒ Object
Returns the value of attribute dashboard.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#dashboard ⇒ Object
Returns the value of attribute dashboard
1 2 3 |
# File 'app/policies/carload_dashboard_policy.rb', line 1 def dashboard @dashboard end |
#user ⇒ Object
Returns the value of attribute user
1 2 3 |
# File 'app/policies/carload_dashboard_policy.rb', line 1 def user @user end |
Instance Method Details
#create? ⇒ Boolean
14 15 16 |
# File 'app/policies/carload_dashboard_policy.rb', line 14 def create? new? end |
#update? ⇒ Boolean
18 19 20 |
# File 'app/policies/carload_dashboard_policy.rb', line 18 def update? edit? end |