Class: Lato::OperationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Lato::OperationsController
- Defined in:
- app/controllers/lato/operations_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Methods included from Componentable
Methods included from Layoutable
#active_navbar, #active_sidebar, #hide_sidebar, #show_sidebar
Methods included from Sessionable
#authenticate_session, #limit_requests, #not_authenticate_session, #session_create, #session_destroy
Instance Method Details
#show ⇒ Object
5 6 7 8 |
# File 'app/controllers/lato/operations_controller.rb', line 5 def show @operation = Lato::Operation.find(params[:id]) return unless validate_user_access_to_operation end |
#show_legacy ⇒ Object
10 11 12 13 14 |
# File 'app/controllers/lato/operations_controller.rb', line 10 def show_legacy Rails.logger.warn('🚨 Legacy route used: operations/show/:id. Please replace operation_show_path with operation_path.') redirect_to lato.operation_path(params[:id]) end |