mirror of https://github.com/rails/rails
Change doc for "polymorphic_path" in polymorphic_routes.rb
The method 'polymorphic_path' is not using 'polymorphic_url' with `routing_type: :path` anymore in polymorphic_routes.rb
This commit is contained in:
parent
eec723f69a
commit
07ed1c5c87
|
@ -120,8 +120,7 @@ module ActionDispatch
|
|||
opts
|
||||
end
|
||||
|
||||
# Returns the path component of a URL for the given record. It uses
|
||||
# <tt>polymorphic_url</tt> with <tt>routing_type: :path</tt>.
|
||||
# Returns the path component of a URL for the given record.
|
||||
def polymorphic_path(record_or_hash_or_array, options = {})
|
||||
if Hash === record_or_hash_or_array
|
||||
options = record_or_hash_or_array.merge(options)
|
||||
|
|
Loading…
Reference in New Issue