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

Instance Method Details

#redirect_url_after_action_onObject



55
56
57
# File 'lib/plutonium/resource/controllers/kanban_actions.rb', line 55

def redirect_url_after_action_on(*)
  kanban_reload_url(super)
end

#redirect_url_after_destroyObject



51
52
53
# File 'lib/plutonium/resource/controllers/kanban_actions.rb', line 51

def redirect_url_after_destroy
  kanban_reload_url(super)
end

#redirect_url_after_submitObject



47
48
49
# File 'lib/plutonium/resource/controllers/kanban_actions.rb', line 47

def redirect_url_after_submit
  kanban_reload_url(super)
end