Render units from collection, without redirects

This commit is contained in:
2024-01-15 18:45:30 +01:00
parent de995aa586
commit 5047d4909f
9 changed files with 37 additions and 22 deletions

View File

@@ -44,4 +44,9 @@ class ApplicationController < ActionController::Base
flash.alert = t("actioncontroller.exceptions.status.#{message_id}")
redirect_to request.referer
end
def run_and_render(action)
send action
render action
end
end