Class: RoundhouseUi::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- RoundhouseUi::ApplicationController
- Defined in:
- app/controllers/roundhouse_ui/application_controller.rb
Direct Known Subclasses
AssetsController, AuditController, BusyController, CapsulesController, DashboardController, DeadController, ErrorsController, JobsController, MetricsController, QueuesController, RedisController, RetriesController, ScheduledController, SnapshotsController, WorkersController
Constant Summary collapse
- AUDIT_VERBS =
Record every state-changing (POST) action. Actions halted by a before_action (e.g. read-only mode) never reach here, so we only log what actually ran.
{ "purge" => "purged queue", "pause" => "paused queue", "resume" => "resumed queue", "snapshot" => "snapshotted queue", "requeue" => "retried", "destroy" => "deleted", "bulk" => "bulk action", "enqueue" => "enqueued now", "restore" => "restored snapshot", "quiet" => "quieted process", "stop" => "stopped process", "create" => "enqueued job", "update" => "edited & re-enqueued", "cancel" => "requested cancel" }.freeze
Instance Method Summary collapse
-
#redirect_to(options = {}, response_options = {}) ⇒ Object
Use 303 See Other after POSTs so Turbo treats form submissions as redirects (and visits the target in place) instead of re-issuing the POST.
Instance Method Details
#redirect_to(options = {}, response_options = {}) ⇒ Object
Use 303 See Other after POSTs so Turbo treats form submissions as redirects (and visits the target in place) instead of re-issuing the POST.
32 33 34 35 |
# File 'app/controllers/roundhouse_ui/application_controller.rb', line 32 def redirect_to( = {}, = {}) [:status] ||= :see_other if request.post? super end |