diff options
author | Richard Schneeman <richard.schneeman+no-recruiters@gmail.com> | 2018-03-09 10:55:46 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-09 10:55:46 -0600 |
commit | f8272402377a0530d5fa9250e32868b8088eb80b (patch) | |
tree | 34ff24330fcd8b83cc2f371eaad659c4b6159764 /actionpack/lib | |
parent | fc55c34bea1a499a201b0516b8493d0596e01934 (diff) | |
parent | 07ed1c5c877c953d06328df059b61ea19c5d5f82 (diff) | |
download | rails-f8272402377a0530d5fa9250e32868b8088eb80b.tar.gz rails-f8272402377a0530d5fa9250e32868b8088eb80b.tar.bz2 rails-f8272402377a0530d5fa9250e32868b8088eb80b.zip |
Merge pull request #32215 from M-Sayed/master
Change doc for "polymorphic_path" in polymorphic_routes.rb
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb index 6da869c0c2..e17ccaf986 100644 --- a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb +++ b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb @@ -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) |