mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +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 = ActionDispatch::Routing::RouteSet.new
|
||||||
Routes.draw do
|
Routes.draw do
|
||||||
resource :hypermedia
|
resource :hypermedia
|
||||||
match ':controller(/:action(/:id))'
|
get ':controller(/:action(/:id))'
|
||||||
match ':controller(/:action)'
|
get ':controller(/:action)'
|
||||||
end
|
end
|
||||||
|
|
||||||
ActionController::Base.send :include, Routes.url_helpers
|
ActionController::Base.send :include, Routes.url_helpers
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user