diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-08 21:16:12 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-08 21:20:47 +0100 |
commit | c41f08cefe6fa3747ee79001d9c88dc988e8064d (patch) | |
tree | 8b1da87300d21cac47141a5834eb9cde3660fc62 /actionpack/lib/action_dispatch/routing/url_for.rb | |
parent | 5da90b34831a0f941b36edbede9089c54432ad6b (diff) | |
download | rails-c41f08cefe6fa3747ee79001d9c88dc988e8064d.tar.gz rails-c41f08cefe6fa3747ee79001d9c88dc988e8064d.tar.bz2 rails-c41f08cefe6fa3747ee79001d9c88dc988e8064d.zip |
Move symbolize keys to the inner options as we can assume url_options will be properly symbolized.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/url_for.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/url_for.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb index 39ba83fb9a..22e41c9c16 100644 --- a/actionpack/lib/action_dispatch/routing/url_for.rb +++ b/actionpack/lib/action_dispatch/routing/url_for.rb @@ -145,7 +145,7 @@ module ActionDispatch when String options when nil, Hash - _routes.url_for((options || {}).reverse_merge(url_options).symbolize_keys) + _routes.url_for((options || {}).symbolize_keys.reverse_merge!(url_options)) else polymorphic_url(options) end |