Skip to content

Commit

Permalink
Replace redirect_to :back with redirect_back for Rails 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktoriia Korsak authored and bricesanchez committed Nov 19, 2018
1 parent 13048b1 commit fa27636
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/lib/refinery/crud.rb
Expand Up @@ -181,7 +181,7 @@ def create_or_update_successful
if request.xhr? if request.xhr?
render :partial => '/refinery/message' render :partial => '/refinery/message'
else else
redirect_to :back redirect_back(fallback_location: { action: 'edit' })
end end
else else
redirect_back_or_default redirect_url redirect_back_or_default redirect_url
Expand Down
2 changes: 1 addition & 1 deletion images/app/controllers/refinery/admin/images_controller.rb
Expand Up @@ -93,7 +93,7 @@ def update
if request.xhr? if request.xhr?
render partial: '/refinery/message' render partial: '/refinery/message'
else else
redirect_to :back redirect_back(fallback_location: { action: 'edit' })
end end
else else
redirect_back_or_default refinery.admin_images_path redirect_back_or_default refinery.admin_images_path
Expand Down
2 changes: 1 addition & 1 deletion pages/app/controllers/refinery/admin/pages_controller.rb
Expand Up @@ -35,7 +35,7 @@ def update
render partial: 'save_and_continue_callback', render partial: 'save_and_continue_callback',
locals: save_and_continue_locals(@page) locals: save_and_continue_locals(@page)
else else
redirect_to :back redirect_back(fallback_location: { action: 'edit' })
end end
else else
redirect_back_or_default(refinery.admin_pages_path) redirect_back_or_default(refinery.admin_pages_path)
Expand Down

0 comments on commit fa27636

Please sign in to comment.