Extract method to redirect keeping query params

This commit is contained in:
Javi Martín
2019-11-10 13:21:15 +01:00
parent 941fc76884
commit 667797161b
10 changed files with 20 additions and 16 deletions

View File

@@ -19,11 +19,11 @@ class Admin::OrganizationsController < Admin::BaseController
def verify
@organization.verify
redirect_to request.query_parameters.merge(action: :index)
redirect_with_query_params_to(action: :index)
end
def reject
@organization.reject
redirect_to request.query_parameters.merge(action: :index)
redirect_with_query_params_to(action: :index)
end
end