This project is archived and is in readonly mode.
ActiveResource should work for non-generated ids
-
Jacques Crocker
- Tag changed from activeresource, active_resource, resource to activeresource, active_resource, patched, resource
Was a fairly simple fix.
Patched via the topic branch:
http://github.com/railsjedi/rails/commits/nongeneratedidsPull request sent. Please review and merge if possible
-
gnufied
Couple of things:
- Your pull request, doesn't merge cleanly agains master
branch.
- You have added:
@@@ ruby require 'fixtures/address' @@@ But the file isn't in your patch. - Probably you are better off, creating a patch using format-patch rather than sending a pull request.
- Your pull request, doesn't merge cleanly agains master
branch.
-
Jacques Crocker
gnufied: thanks for the heads up. i was trying to juggle 2 patches at the same time and got confused in splitting up the branches. has been fixed now: http://github.com/railsjedi/rails/tree/nongeneratedids
I do think a topic branch is the right approach as I can make fixes like this easily without having to regenerating a patch.
Please retest if you can. I just verified cherry picking it into origin/master and everything ran silky smooth :-)
-
Repository
- State changed from new to resolved
(from [ee5ef67c443407f616feef3a8cade8ba3a9d6ef0]) Allow ActiveResource to work with non-generated ids [#5660 ActiveResource should work for non-generated ids state:resolved]
This commit updates new? so that it knows whether or not the record was actually new or not, and doesn't rely solely on the presence of id. This enables the ability to set a custom primary_key that is not autogenerated by the server.
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/ee5ef67c443407f616feef3a8cade8... -
Andrea Campi
- Tag changed from activeresource, active_resource, patched, resource to activeresource, active_resource, patch, resource
bulk tags cleanup
-
Raffael Schmid
could it be, that this wasn't merged into main?