spec/rails_app/config/routes.rb in audited-3.0.0 vs spec/rails_app/config/routes.rb in audited-4.0.0.rc1
- old
+ new
@@ -1,6 +1,6 @@
Rails.application.routes.draw do
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
- match ':controller(/:action(/:id(.:format)))'
+ match ':controller(/:action(/:id(.:format)))', via: [:get, :post, :put, :delete]
end