Eloy Duran
|
f2aacd5140
|
Rollback the transaction when one of the autosave associations fails to save. [#3391 state:resolved]
|
2010-01-08 21:45:02 +01:00 |
|
Eloy Duran
|
c23fbd0d47
|
Refactored previous changes to nested attributes.
|
2009-12-28 21:09:22 +01:00 |
|
Eloy Duran
|
f125a34501
|
Define autosave association callbacks when using accepts_nested_attributes_for.
This way we don't define all the validation methods for all associations by
default, but only when needed.
[#3355 state:resolved]
|
2009-11-07 00:42:42 +01:00 |
|
Pratik Naik
|
572323135f
|
Allow accepts_nested_attributes_for :reject_if option accept symbols for using a method
Conflicts:
activerecord/lib/active_record/nested_attributes.rb
|
2009-10-07 23:50:30 +01:00 |
|
Alexey Kovyrin
|
938c0ee045
|
Define autosave association validation methods only when needed. [#3161 state:resolved]
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
|
2009-09-12 16:04:36 +02:00 |
|
Mike Breen
|
9010ed2755
|
Allow you to pass :all_blank to :reject_if option to automatically create a Proc that will reject any record with blank attributes.
|
2009-05-10 15:02:00 +12:00 |
|
Luca Guidi
|
47bdf3bf40
|
Ensure AutosaveAssociation runs remove callbacks [#2146 state:resolved]
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-12 15:24:37 +00:00 |
|
Lance Ivy
|
5dbc9d40a4
|
Changed API of NestedAttributes to take an array, or hash with index keys, 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]
|
2009-02-13 21:47:56 +13:00 |
|
Eloy Duran
|
ec8f045844
|
Add support for nested object forms to ActiveRecord and the helpers in ActionPack
Signed-Off-By: Michael Koziarski <michael@koziarski.com>
[#1202 state:committed]
|
2009-02-01 14:44:30 +13:00 |
|
Xavier Noria
|
593e21d6ae
|
Dirty attributes aren't cleared if save fails. [#174 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2008-05-12 17:04:17 -07:00 |
|
Jeremy Kemper
|
b1ea27630d
|
Fix has_many :through a polymorphic has_many. Closes #10529 [Aleksey Kondratenko]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8776 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-02 03:27:31 +00:00 |
|
Jeremy Kemper
|
43b81d01d0
|
move assets and models
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-18 07:27:03 +00:00 |
|