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:
parent
986bad6a3b
commit
cd681681e6
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue