aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/autosave_association_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Exclude unchanged records from the collection being considered for autosave. ↵Lawrence Pit2010-01-081-9/+4
| | | | | | [#2578 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Add failing test that triggers the stack overflowBryan Stearns2010-01-081-0/+9
|
* Errors messages are now moved from :activerecord.errors to simply :errors on ↵José Valim2010-01-071-5/+3
| | | | I18n yml files.
* Be sure to convert namespaced names to we have 'Parrots name' instead of ↵José Valim2010-01-021-0/+1
| | | | 'Parrots.name' in error messages.
* Make nested attributes behave like in 2.3.5 and add a sanity test for it ↵José Valim2010-01-021-7/+23
| | | | with I18n.
* Make sure to not add autosave callbacks multiple times. [#3575 state:resolved]Eloy Duran2009-12-281-0/+29
| | | | This makes sure that, in a HABTM association, only one join record is craeted.
* Define autosave association validation methods only when needed. [#3161 ↵Alexey Kovyrin2009-09-121-0/+115
| | | | | | state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* During autosave, ignore records that already have been destroyed. [#2537 ↵Eloy Duran2009-09-121-0/+24
| | | | state:resolved]
* Fix autosave association to skip validation if it is marked for destruction. ↵Dmitry Polushkin2009-09-121-1/+6
| | | | | | [#2064 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Explicitely setting `autosave => false' should override new_record ↵Eloy Duran2009-09-121-0/+64
| | | | | | autosaving. [#2214 state:resolved] Original author is Jacob.
* Don't cascade autosave validation to destroyed children. [#2761 state:resolved]Lance Ivy2009-09-121-0/+11
| | | | Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
* Oracle saves empty string as NULLRaimonds Simanovskis2009-08-061-10/+36
|
* Merge branch 'master' into active_modelJoshua Peek2009-05-291-1/+28
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: activemodel/lib/active_model/core.rb activemodel/test/cases/state_machine/event_test.rb activemodel/test/cases/state_machine/state_transition_test.rb activerecord/lib/active_record/validations.rb activerecord/test/cases/validations/i18n_validation_test.rb activeresource/lib/active_resource.rb activeresource/test/abstract_unit.rb
| * Add missing models and fixtures [#2673 state:resolved]Emilio Tagua2009-05-191-1/+6
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
| * Ensure the parent record is always saved when the child is invalid. [#2249 ↵Eloy Duran2009-04-271-0/+22
| | | | | | | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Deprecate Error#on(attribute) in favour of Errors#[attribute]Pratik Naik2009-03-201-16/+16
| |
* | Move all the Active Record validations to Active ModelPratik Naik2009-03-191-2/+2
|/
* Ensure AutosaveAssociation runs remove callbacks [#2146 state:resolved]Luca Guidi2009-03-121-0/+35
| | | | | Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Don't validate records of an :autosave association if they're marked for ↵Eloy Duran2009-02-271-3/+27
| | | | | | destruction. [#2064 status:resolved] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Fixed that autosave should validate associations even if master is invalid ↵David Heinemeier Hansson2009-02-271-8/+442
| | | | [#1930 status:committed]
* Also save :autosave enabled associations when #save! is used.Eloy Duran2009-02-061-1/+23
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1877 state:committed]
* Add support for nested object forms to ActiveRecord and the helpers in ↵Eloy Duran2009-02-011-0/+386
ActionPack Signed-Off-By: Michael Koziarski <michael@koziarski.com> [#1202 state:committed]