Module: Plutonium::Resource::Controllers::KanbanActions::ReloadRedirects
- Defined in:
- lib/plutonium/resource/controllers/kanban_actions.rb
Overview
Tags board-bound redirects with kanban_reload=1 so the permanent board
refreshes its cached column frames on arrival (see #kanban_reload_url).
Wraps ALL three redirect helpers — create/update (after_submit), destroy
(after_destroy), and interactive record/resource/bulk actions
(after_action_on). PREPENDED, not a plain override: after_action_on
lives in InteractiveActions, which is included AFTER this concern, so a
normal override here would be shadowed. Prepending wins regardless of
include order, and super still reaches the real implementation.
Instance Method Summary collapse
- #redirect_url_after_action_on ⇒ Object
- #redirect_url_after_destroy ⇒ Object
- #redirect_url_after_submit ⇒ Object
Instance Method Details
#redirect_url_after_action_on ⇒ Object
52 53 54 |
# File 'lib/plutonium/resource/controllers/kanban_actions.rb', line 52 def redirect_url_after_action_on(*) kanban_reload_url(super) end |
#redirect_url_after_destroy ⇒ Object
48 49 50 |
# File 'lib/plutonium/resource/controllers/kanban_actions.rb', line 48 def redirect_url_after_destroy kanban_reload_url(super) end |
#redirect_url_after_submit ⇒ Object
44 45 46 |
# File 'lib/plutonium/resource/controllers/kanban_actions.rb', line 44 def redirect_url_after_submit kanban_reload_url(super) end |