Class: Lesli::Shared::DashboardsController
- Inherits:
-
ApplicationLesliController
- Object
- ActionController::Base
- ApplicationController
- ApplicationLesliController
- Lesli::Shared::DashboardsController
- Defined in:
- app/controllers/lesli/shared/dashboards_controller.rb
Instance Attribute Summary
Attributes inherited from ApplicationController
Instance Method Summary collapse
-
#edit ⇒ Object
before_action :set_dashboard, only: [:show, :update, :destroy, :options].
- #show ⇒ Object
Methods included from CustomizationInterface
Methods included from ResponderInterface
#respond_as_pagination, #respond_as_successful, #respond_with_action, #respond_with_error, #respond_with_http, #respond_with_not_found, #respond_with_pagination, #respond_with_successful, #respond_with_unauthorized
Methods included from RequesterInterface
#get_user_agent, #set_locale, #set_path, #set_requester
Methods inherited from ApplicationController
Constructor Details
This class inherits a constructor from Lesli::ApplicationController
Instance Method Details
#edit ⇒ Object
before_action :set_dashboard, only: [:show, :update, :destroy, :options]
37 38 |
# File 'app/controllers/lesli/shared/dashboards_controller.rb', line 37 def edit end |
#show ⇒ Object
40 41 42 43 |
# File 'app/controllers/lesli/shared/dashboards_controller.rb', line 40 def show builder = LesliSystem::Klass.new(self) @dashboard = builder.model.dashboard.first end |