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/action_dispatch/routing
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
..
endpoint.rb give all endpoints a superclass 2014-05-27 12:10:24 -07:00
inspector.rb we do not need to cache rack_app 2014-05-26 15:43:14 -07:00
mapper.rb Don't ignore constraints in redirect routes 2014-08-25 00:18:25 +03:00
polymorphic_routes.rb Allow polymorphic routes with nil when a route can still be drawn 2014-08-31 11:39:46 -05:00
redirection.rb remove another wasteful AS::SafeBuffer allocation 2014-06-06 12:06:58 -07:00
route_set.rb Deprecate NamedRouteCollection#helpers. 2014-08-17 22:36:22 -03:00
routes_proxy.rb Missing or unneeded require extract_options 2013-02-01 12:10:58 +09:00
url_for.rb remove some caching 2014-07-28 13:57:05 -07:00