Extract method to redirect keeping query params
This commit is contained in:
@@ -10,14 +10,14 @@ class Admin::HiddenCommentsController < Admin::BaseController
|
||||
|
||||
def confirm_hide
|
||||
@comment.confirm_hide
|
||||
redirect_to request.query_parameters.merge(action: :index)
|
||||
redirect_with_query_params_to(action: :index)
|
||||
end
|
||||
|
||||
def restore
|
||||
@comment.restore(recursive: true)
|
||||
@comment.ignore_flag
|
||||
Activity.log(current_user, :restore, @comment)
|
||||
redirect_to request.query_parameters.merge(action: :index)
|
||||
redirect_with_query_params_to(action: :index)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user