1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib
Sammy Larbi 2fae37f0ac 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
2014-08-31 11:39:46 -05:00
..
abstract_controller remove deprecated MissingHelperError proxy. 2014-08-14 09:37:21 +02:00
action_controller Merge pull request #16570 from bradleybuda/breach-mitigation-mask-csrf-token 2014-08-19 18:17:07 -07:00
action_dispatch Allow polymorphic routes with nil when a route can still be drawn 2014-08-31 11:39:46 -05:00
action_pack Refer to the library name instead of the constant 2014-08-30 11:58:23 +02:00
abstract_controller.rb
action_controller.rb When your templates change, browser caches bust automatically. 2014-08-17 06:52:17 -07:00
action_dispatch.rb
action_pack.rb