This project is archived and is in readonly mode.
Explicit autosave => false should override new_record autosaving
-
Jacob Burkhart
- No changes were found…
-
Eloy Duran
I will wok on this, but there are some other things I need to finish first. But it will be added :)
Thanks
-
Tim Connor
+1
-
Eloy Duran
Hey Jacob,
I've verified your patch and have it in the queue to be applied, however, could you supply me with your full name and email so I can set the right author?
Thanks
-
Eloy Duran
- State changed from new to verified
- Milestone changed from 2.x to 2.3.4
I have verified and applied this patch on my branch of 2-3-stable, which Micheal will look at and merge in before 2.3.4.
http://github.com/alloy/rails/commit/295a20b2e9c0dfe7d70e4521333e5f...
Thanks!
-
Jacob Burkhart
thanks Eloy,
Jacob Burkhart igotimac at gmail
-
Repository
- State changed from verified to resolved
(from [2420d6272c8dfa1ebd6735fc9b29e73291b0b93c]) Explicitely setting
autosave => false' should override new_record autosaving. [[#2214](/projects/8994/tickets/2214 "Ticket #2214") state:resolved]Original author is Jacob.
http://github.com/rails/rails/commit/2420d6272c8dfa1ebd6735fc9b29e7... -
Repository
(from [6cc0b9638fbb6ede3c46b51d7dab17881416014c]) Explicitely setting
autosave => false' should override new_record autosaving. [[#2214](/projects/8994/tickets/2214 "Ticket #2214") state:resolved]Original author is Jacob.
http://github.com/rails/rails/commit/6cc0b9638fbb6ede3c46b51d7dab17... -
Michael Johnston
- Importance changed from to Low
The way this was implemented means that when autosave is false on a belongs_to association and you do save an association (that is a new record) manually, the foreign key does not get set in the record owning the association.https://rails.lighthouseapp.com/preview
Was this intentional? It kind of seems to me that the foreign keys should still get set.
