1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Initialize @_routes if it doesn't exists.

This commit is contained in:
Emilio Tagua 2010-09-24 15:41:01 -03:00
parent 986bad6a3b
commit cd681681e6

View file

@ -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)