summaryrefslogtreecommitdiff
path: root/public/assets/tinymce/plugins/visualchars/plugin-78f8de260740c933124a20da6eb9272b2a7cf16b2189c8d71ffa3aa2877cf77b.js
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-04 01:25:24 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-04 01:25:24 +0200
commit4596b32a0787a574881284d042bb77c970df8a4d (patch)
tree930e1d174f73e92e7bc70bc3da17a2d334ff57cd /public/assets/tinymce/plugins/visualchars/plugin-78f8de260740c933124a20da6eb9272b2a7cf16b2189c8d71ffa3aa2877cf77b.js
parent206dc5c50a73c5402b90d7fdc8945d3ba9356758 (diff)
Fix safe_return_to being uncallable from controllers
Defined only in ApplicationHelper, which Rails auto-mixes into views but not controllers - so events#create and events#update, which call it directly, have been broken since introduction. Likely unexercised until now because every existing event was created via node.events.create! in the seed script, never through a real POST. Moved to ApplicationController as a protected method + helper_method declaration, so both controllers and views can call it (form_error_ messages stays in ApplicationHelper - it's genuinely view-only, content_tag isn't available in a controller either). Logic unchanged, caught by the new EventsController tests in the previous commit.
Diffstat (limited to 'public/assets/tinymce/plugins/visualchars/plugin-78f8de260740c933124a20da6eb9272b2a7cf16b2189c8d71ffa3aa2877cf77b.js')
0 files changed, 0 insertions, 0 deletions