diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-24 15:41:01 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-27 11:19:21 -0300 |
commit | cd681681e655b155b8f739d8042389a58be28111 (patch) | |
tree | 0c6fef8bb82ca66d7c9fb5796b7779e384dd5fbd /actionpack/lib | |
parent | 986bad6a3b89fed39c02f87068210f0c74e083cd (diff) | |
download | rails-cd681681e655b155b8f739d8042389a58be28111.tar.gz rails-cd681681e655b155b8f739d8042389a58be28111.tar.bz2 rails-cd681681e655b155b8f739d8042389a58be28111.zip |
Initialize @_routes if it doesn't exists.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/url_for.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb index e836cf7c8e..045c9ec77d 100644 --- a/actionpack/lib/action_dispatch/routing/url_for.rb +++ b/actionpack/lib/action_dispatch/routing/url_for.rb @@ -128,6 +128,7 @@ module ActionDispatch when String options when nil, Hash + @_routes ||= nil _routes.url_for((options || {}).reverse_merge!(url_options).symbolize_keys) else polymorphic_url(options) |