diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-05-03 23:26:54 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-05-04 15:17:04 -0300 |
commit | d03aa104e069be4e301efa8cefb90a2a785a7bff (patch) | |
tree | 105d468d8067e80eedfe4fc796fb5730bf5d9b13 /actionpack/test/dispatch/test_response_test.rb | |
parent | 319db7b189fe1f02268c99c9e9566312535c02ec (diff) | |
download | rails-d03aa104e069be4e301efa8cefb90a2a785a7bff.tar.gz rails-d03aa104e069be4e301efa8cefb90a2a785a7bff.tar.bz2 rails-d03aa104e069be4e301efa8cefb90a2a785a7bff.zip |
Force given path to http methods in mapper to skip canonical action checking
This fixes the following scenario:
resources :contacts do
post 'new', action: 'new', on: :collection, as: :new
end
Where the /new path is not generated because it's considered a canonical
action, part of the normal resource actions:
new_contacts POST /contacts(.:format) contacts#new
Fixes #2999
Diffstat (limited to 'actionpack/test/dispatch/test_response_test.rb')
0 files changed, 0 insertions, 0 deletions