mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
match method should not be used for routes; instead, a specific HTTP method should be used
This commit is contained in:
parent
b706244122
commit
281b45ad2a
@ -21,8 +21,8 @@ module TestHelper
|
||||
Routes = ActionDispatch::Routing::RouteSet.new
|
||||
Routes.draw do
|
||||
resource :hypermedia
|
||||
match ':controller(/:action(/:id))'
|
||||
match ':controller(/:action)'
|
||||
get ':controller(/:action(/:id))'
|
||||
get ':controller(/:action)'
|
||||
end
|
||||
|
||||
ActionController::Base.send :include, Routes.url_helpers
|
||||
|
||||
Loading…
Reference in New Issue
Block a user