aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/nested_attributes_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add test to verify that the new :inverse_of association option will indeed ↵Wolfram Arnold2009-08-081-0/+37
| | | | | | | | fix the validation problem for a belongs_to relationship that validates_presence_of the parent, when both the parent and the child are new (in-memory) records. Also check that this works when the parents adds child via nested_attributes_for. Lastly, add a require 'models/pet' to association_validation_test.rb, so that test can be run independently (was failing due to that missing dependency). [#2815 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Cherry-pick core extensionsJeremy Kemper2009-05-131-0/+1
|
* Allow you to pass :all_blank to :reject_if option to automatically create a ↵Mike Breen2009-05-101-1/+17
| | | | Proc that will reject any record with blank attributes.
* Changed API of NestedAttributes to take an array, or hash with index keys, ↵Lance Ivy2009-02-131-76/+212
| | | | | | | | of hashes that have the id on the inside of the attributes hash and updated the FormBuilder to produce such hashes. Also fixed NestedAttributes with composite ids. Signed-off-by: Michael Koziarski <michael@koziarski.com> Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> [#1892 state:committed]
* Nested attribute accessors should ignore new records with truthy _delete key.Pascal Ehlert2009-02-061-0/+14
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1861 state:committed]
* Don't rely on the order in these testsMichael Koziarski2009-02-011-2/+2
|
* Add support for nested object forms to ActiveRecord and the helpers in ↵Eloy Duran2009-02-011-0/+359
ActionPack Signed-Off-By: Michael Koziarski <michael@koziarski.com> [#1202 state:committed]