This project is archived and is in readonly mode.
ActiveResource prefix_parameters don't update
Reported by Gregg Kellogg | June 5th, 2008 @ 11:15 PM
When changing prefix, ActiveResource should cause prefix_parameters to be re-calculated. For example:
Model.prefix = "/prefix/:prefix_id"
Model.create(:name => "foo", :prefix_id => 1)
should create using /prefix/1/model, but :prefix_id is not set.
Simple one-line change to ActiveResource::Base::prefix=;
@prefix_parameters = nil # Cause prefix_parameters to be re-evaluated # GK 5-Jun-2008
Comments and changes to this ticket
-
Tarmo Tänav August 23rd, 2008 @ 05:42 PM
- State changed from new to resolved
- Tag cleared.
Fixed in http://github.com/rails/rails/tr...
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
Referenced by
- 329 Add an API for plugins to register routes This patch incorporates functionality from ticket #349 wh...