aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/activerecord/form_helper_activerecord_test.rb
diff options
context:
space:
mode:
authorSammy Larbi <sam@codeodor.com>2014-08-30 17:19:16 -0500
committerSammy Larbi <sam@codeodor.com>2014-08-31 11:39:46 -0500
commit2fae37f0acbb4154fe75c22a892f79e158016866 (patch)
tree9dc3938355e2050227be0ac020e11d74b2d7b8df /actionview/test/activerecord/form_helper_activerecord_test.rb
parenteb8aa4d9fb6d2d2dc196b527d16f2564bcb1ce8e (diff)
downloadrails-2fae37f0acbb4154fe75c22a892f79e158016866.tar.gz
rails-2fae37f0acbb4154fe75c22a892f79e158016866.tar.bz2
rails-2fae37f0acbb4154fe75c22a892f79e158016866.zip
Allow polymorphic routes with nil when a route can still be drawn
Suppose you have two resources routed in the following manner: ```ruby resources :blogs do resources :posts end resources :posts ``` When using polymorphic resource routing like `url_for([@blog, @post])`, and `@blog` is `nil` Rails should still try to match the route to the top-level posts resource. Fixes #16754
Diffstat (limited to 'actionview/test/activerecord/form_helper_activerecord_test.rb')
0 files changed, 0 insertions, 0 deletions