Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

polymorphic_path shouldn't modify options hash

#2099

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".

Reported by Mislav · February 28th, 2009 @ 03:17 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik
    • State changed from new to resolved
    • Tag changed from options, patch, polymorphic_path to bug, options, patch, polymorphic_path

    Resolved in 21cd4c0e93fc6ac5497ada787d286c07f627e5ba

    June 21st, 2009 @ 05:59 PM

  2. Repository
  3. Repository