Eloy Duran
Developer · Member of 1 project: Ruby on Rails
Eloy Duran's latest activity
Saturday, March 07 2009
-
Eloy Duran commented at 12:54 PMJeez, formatting is a pita. I edited it a few times, hope you can understand it.
-
Eloy Duran commented at 12:49 PMHowever, if I do something like this:
@@@ ruby a = ModelA.create a.model_bs << ModelB.create a.valid? # => true a.model_bs.first.name = nil a.valid? # => true ...
-
- Tag changed from 2.3-rc1, activerecord to activerecord
It would be very helpful if you could identify where (if) this was introduced.
Thanks
-
- State changed from new to invalid
Indeed, as José spotted correctly, when explicitly setting :validate => true on the belongs_to :parrot association it works as you expected it to:
1) Error... -
Eloy Duran commented at 12:23 PMJust by curiosity, even with :validate => true this happens? If I'm not mistaken, :validate => false is the default in belongs_to associations.
That's correct...
-
Eloy Duran commented at 12:19 PMThe documentation (meaning comments in autosave_association.rb) seems to imply that :autosave is a feature you have to turn on by enabling :autosave => true on...
-
- Assigned user set to Eloy Duran
- State changed from new to open
Could you please try to distill a failing test for the exact problem you are having? That would be greatly appreciated.
Thanks
Friday, March 06 2009
-
Eloy Duran commented at 10:23 AMCallbacks aren't ran, cause we use only record.destroy. Code similar to this is in AssociationProxy#delete, but it run also unwanted callbacks.
Oh, I actually...
-
Eloy Duran commented at 10:13 AMJust to clarify a bit. Judging by the tag you are sure this was introduced in the first 2.3 release candidate?
-
Eloy Duran commented at 9:35 AM- if :autosave were true on Pirate belongs_to :parrot then the pirate save should have failed with a validation error
I agree
- if :autosave were false on Pir...