forked from fixin.me/fixin.me
Render units from collection, without redirects
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user