Class: CarloadDashboardPolicy

Inherits:
Struct
  • Object
show all
Defined in:
app/policies/carload_dashboard_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dashboardObject

Returns the value of attribute dashboard

Returns:

  • (Object)

    the current value of dashboard



1
2
3
# File 'app/policies/carload_dashboard_policy.rb', line 1

def dashboard
  @dashboard
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



1
2
3
# File 'app/policies/carload_dashboard_policy.rb', line 1

def user
  @user
end

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/policies/carload_dashboard_policy.rb', line 14

def create?
  new?
end

#update?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/policies/carload_dashboard_policy.rb', line 18

def update?
  edit?
end