Permalink
Browse files

Replace redirect_to :back with redirect_back for Rails 5.2

  • Loading branch information...
Viktoriia Korsak authored and bricesanchez committed Nov 6, 2018
1 parent 13048b1 commit fa276369c70cf7491a8f52d19063d61774ebf65f
@@ -181,7 +181,7 @@ def create_or_update_successful
if request.xhr?
render :partial => '/refinery/message'
else
redirect_to :back
redirect_back(fallback_location: { action: 'edit' })
end
else
redirect_back_or_default redirect_url
@@ -93,7 +93,7 @@ def update
if request.xhr?
render partial: '/refinery/message'
else
redirect_to :back
redirect_back(fallback_location: { action: 'edit' })
end
else
redirect_back_or_default refinery.admin_images_path
@@ -35,7 +35,7 @@ def update
render partial: 'save_and_continue_callback',
locals: save_and_continue_locals(@page)
else
redirect_to :back
redirect_back(fallback_location: { action: 'edit' })
end
else
redirect_back_or_default(refinery.admin_pages_path)

0 comments on commit fa27636

Please sign in to comment.