This project is archived and is in readonly mode.
polymorphic_path shouldn't modify options hash
Reported by Mislav | February 28th, 2009 @ 03:17 PM | in 2.x
Currently it's not possible to call first polymorphic_path and then polymorphic_url with the same options hash:
options = { :format => 'xml' }
polymorphic_path(record, options)
polymorphic_url(record, options) # => wrong result (path instead of URL)
This is because polymorphic_path changes the options hash to add ":routing_type => :path".
Comments and changes to this ticket
-
Pratik June 21st, 2009 @ 05:59 PM
- State changed from new to resolved
- Tag changed from options, patch, polymorphic_path to bug, options, patch, polymorphic_path
Resolved in 21cd4c0e93fc6ac5497ada787d286c07f627e5ba
-
Repository June 21st, 2009 @ 09:26 PM
(from [21cd4c0e93fc6ac5497ada787d286c07f627e5ba]) Fix polymorphic_path doesn't modify options hash [#2099 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/21cd4c0e93fc6ac5497ada787d286c... -
Repository June 23rd, 2009 @ 10:50 PM
(from [47eb7a214e2f796197a75831c2e3b806ae42c0a0]) Fix polymorphic_path doesn't modify options hash [#2099 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/47eb7a214e2f796197a75831c2e3b8...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 2099 polymorphic_path shouldn't modify options hash (from [21cd4c0e93fc6ac5497ada787d286c07f627e5ba]) Fix pol...
- 2099 polymorphic_path shouldn't modify options hash (from [47eb7a214e2f796197a75831c2e3b806ae42c0a0]) Fix pol...