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:
Mahmoud 2018-03-09 09:33:41 +02:00
parent eec723f69a
commit 07ed1c5c87
1 changed files with 1 additions and 2 deletions

View File

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