Skip to content

Commit 4420ece

Browse files
committed
opt: bulk_update return to index page with given param
1 parent baba4b7 commit 4420ece

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/controllers/trained_messages_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def bulk_update
8282
flash[:alert] = "Invalid action."
8383
end
8484

85-
redirect_to trained_messages_path(request.query_parameters)
85+
redirect_to trained_messages_path(
86+
params.except(:commit, :trained_message_ids, :authenticity_token, :controller, :action).to_unsafe_h
87+
)
8688
end
8789

8890
# POST /trained_messages or /trained_messages.json

0 commit comments

Comments
 (0)