Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge remote branch 'mainstream/master' | Pratik Naik | 2010-01-17 | 1 | -31/+22 |
|\ | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/flash.rb | ||||
| * | Renamed AssociationReflection #collection_association? to #collection?. | Eloy Duran | 2010-01-08 | 1 | -1/+1 |
| | | |||||
| * | Raise a RecordNotFound if an ID in nested attributes is given but doesn't ↵ | Eloy Duran | 2010-01-07 | 1 | -0/+11 |
| | | | | | | | | return a record. [#2415 state:resolved] | ||||
| * | Remove deprecated '_delete' option from NestedAttributes. | Eloy Duran | 2010-01-07 | 1 | -13/+2 |
| | | |||||
| * | Removed unnecessary call to #try and cleaned up a bit more. | Eloy Duran | 2010-01-07 | 1 | -6/+4 |
| | | |||||
| * | Cleanup some code in nested_attributes.rb, autosave_association.rb, and ↵ | Eloy Duran | 2010-01-07 | 1 | -7/+1 |
| | | | | | | | | | | | | associations.rb with AssociationReflection#collection_association? Also cache the result value. | ||||
| * | Refactored nested attributes a bit around :reject_if => :all_blank. | Eloy Duran | 2010-01-07 | 1 | -5/+4 |
| | | |||||
* | | Merge remote branch 'mainstream/master' | Pratik Naik | 2010-01-04 | 1 | -22/+26 |
|\| | |||||
| * | Refactored previous changes to nested attributes. | Eloy Duran | 2009-12-28 | 1 | -32/+18 |
| | | |||||
| * | Add an :update_only option to accepts_nested_attributes_for for to-one ↵ | Michael Siebert | 2009-12-28 | 1 | -3/+23 |
| | | | | | | | | | | | | associations. [#2563 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | ||||
| * | Make sure to not add autosave callbacks multiple times. [#3575 state:resolved] | Eloy Duran | 2009-12-28 | 1 | -3/+1 |
| | | | | | | | | This makes sure that, in a HABTM association, only one join record is craeted. | ||||
* | | Merge remote branch 'mainstream/master' | Pratik Naik | 2009-11-17 | 1 | -0/+2 |
|\| | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/conversions.rb | ||||
| * | Define autosave association callbacks when using accepts_nested_attributes_for. | Eloy Duran | 2009-11-07 | 1 | -0/+2 |
| | | | | | | | | | | | | | | This way we don't define all the validation methods for all associations by default, but only when needed. [#3355 state:resolved] | ||||
* | | Merge commit 'mainstream/master' | Pratik Naik | 2009-10-10 | 1 | -20/+63 |
|\| | |||||
| * | Add a :limit option to specify the maximum number of records that can be ↵ | Pratik Naik | 2009-10-09 | 1 | -1/+14 |
| | | | | | | | | processed by accepts_nested_attributes_for | ||||
| * | Store entire options hash in the class var rather than just the reject_if ↵ | Pratik Naik | 2009-10-09 | 1 | -12/+15 |
| | | | | | | | | proc for the nested attributes | ||||
| * | Use indifferent access attributes instead of stringifying them | Pratik Naik | 2009-10-08 | 1 | -2/+2 |
| | | |||||
| * | Allow accepts_nested_attributes_for :reject_if option accept symbols for ↵ | Pratik Naik | 2009-10-07 | 1 | -6/+33 |
| | | | | | | | | | | | | | | | | using a method Conflicts: activerecord/lib/active_record/nested_attributes.rb | ||||
* | | Fix nested attributes examples again. | George Ogata | 2009-09-29 | 1 | -3/+3 |
| | | | | | | | | Those hashes don't have indifferent access. | ||||
* | | Fix creation example in nested attributes. | George Ogata | 2009-09-29 | 1 | -1/+1 |
| | | |||||
* | | Merge commit 'mainstream/master' | Pratik Naik | 2009-09-21 | 1 | -22/+38 |
|\| | |||||
| * | Rename nested attributes _delete to _destroy to reflect its actual behavior ↵ | José Valim | 2009-09-12 | 1 | -21/+32 |
| | | | | | | | | | | | | and DSL (:allow_destroy). Deprecation warning added. [#2889 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | ||||
| * | Raise an exception with friendlier error message when attempting to build a ↵ | Mike Breen | 2009-09-12 | 1 | -1/+6 |
| | | | | | | | | | | | | polymorphic belongs_to with accepts_nested_attributes_for. [#2318 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | ||||
| * | Merge docrails | Pratik Naik | 2009-07-25 | 1 | -1/+1 |
| | | |||||
* | | NestedAttributes: call reload after saving to see deletions reflected in | Rob Olson | 2009-09-18 | 1 | -2/+2 |
| | | | | | | | | nested associations. Docs now match actual behavior. | ||||
* | | Merge commit 'mainstream/master' | Pratik Naik | 2009-06-01 | 1 | -1/+1 |
|\| | |||||
| * | Break up DependencyModule's dual function of providing a "depend_on" DSL and ↵ | Joshua Peek | 2009-05-28 | 1 | -1/+1 |
| | | | | | | | | "included" block DSL into separate modules. But, unify both approaches under AS::Concern. | ||||
* | | Merge commit 'mainstream/master' | Pratik Naik | 2009-05-15 | 1 | -5/+18 |
|\| | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/form_helper.rb | ||||
| * | Cherry-pick core extensions | Jeremy Kemper | 2009-05-13 | 1 | -0/+3 |
| | | |||||
| * | Use DependencyModule for included hooks in ActiveRecord | Bryan Helmkamp | 2009-05-11 | 1 | -4/+5 |
| | | |||||
| * | Allow you to pass :all_blank to :reject_if option to automatically create a ↵ | Mike Breen | 2009-05-10 | 1 | -1/+10 |
| | | | | | | | | Proc that will reject any record with blank attributes. | ||||
* | | Spelling fixes in activerecord. | Evan Farrar | 2009-05-07 | 1 | -1/+1 |
|/ | |||||
* | Changed API of NestedAttributes to take an array, or hash with index keys, ↵ | Lance Ivy | 2009-02-13 | 1 | -100/+146 |
| | | | | | | | | 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 Ehlert | 2009-02-06 | 1 | -2/+6 |
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1861 state:committed] | ||||
* | Add support for nested object forms to ActiveRecord and the helpers in ↵ | Eloy Duran | 2009-02-01 | 1 | -0/+279 |
ActionPack Signed-Off-By: Michael Koziarski <michael@koziarski.com> [#1202 state:committed] |