Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | mass_assignment_security moved from AR to AMo, and minor test cleanup | Josh Kalderimis | 2010-07-08 | 1 | -9/+1 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | minor changes to mass assignment security patch to bring it in line with ↵ | Josh Kalderimis | 2010-07-08 | 1 | -0/+32 | |
| | | | | | | rails standards Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Fixed gruoped_by_title spelling [#5063 state:committed] | Ben Somers | 2010-07-08 | 1 | -1/+1 | |
| | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | |||||
* | Push a failing test for issues [#4994] and [#5003]. | José Valim | 2010-06-29 | 1 | -0/+3 | |
| | ||||||
* | with_exclusive_scope does not work properly if ARel is passed. It does work ↵ | Neeraj Singh | 2010-06-29 | 1 | -1/+7 | |
| | | | | | | | | nicely if hash is passed. Blow up if user is attempting it pass ARel to with_exclusive_scope. [#3838 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Don't overwrite unsaved updates when loading an association but preserve the ↵ | James Le Cuirot | 2010-06-20 | 1 | -2/+2 | |
| | | | | | | | | order of the loaded records. Reapplied from before but now allows already-saved records to be refreshed. [#4830 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Revert "Don't overwrite unsaved updates when loading an association but ↵ | José Valim | 2010-06-11 | 1 | -2/+2 | |
| | | | | | | | | preserve the order of the loaded records. [#4642 state:open]" This commit introduced a regression described in ticket [#4830]. This reverts commit 0265c708b9696c3943518ad5f3dabdc22c5eba11. | |||||
* | Don't overwrite unsaved updates when loading an association but preserve the ↵ | James Le Cuirot | 2010-06-09 | 1 | -2/+2 | |
| | | | | | | order of the loaded records. [#4642 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Explicitly set Topic model last_read attribute as Date value when Oracle ↵ | Raimonds Simanovskis | 2010-06-04 | 1 | -0/+6 | |
| | | | | | | enhanced adapter is used (otherwise some tests are failing which assume that this attribute will have Date value) | |||||
* | Properly cache association_collection#scopes calls having arguments | Pratik Naik | 2010-06-04 | 1 | -0/+1 | |
| | ||||||
* | Fix failing test. | José Valim | 2010-05-21 | 1 | -3/+3 | |
| | ||||||
* | Nested records (re: autosave) are now updated even when the intermediate ↵ | Ian White | 2010-05-18 | 2 | -1/+4 | |
| | | | | | | parent record is unchanged [#4242 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Fix for get_ids when including a belongs_to association on a has_many ↵ | Diego Algorta | 2010-05-15 | 1 | -0/+1 | |
| | | | | | | association [#2896 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Make sure valid? preceives the context as in ActiveModel API (ht: Carlos ↵ | José Valim | 2010-05-10 | 1 | -0/+5 | |
| | | | | Antonio) | |||||
* | to_xml with :include should skip_instruct on the included records [#4506 ↵ | Lawrence Pit | 2010-04-30 | 1 | -1/+3 | |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | test cases for record.to_xml [#458 state:resolved] | Neeraj Singh | 2010-04-30 | 1 | -0/+4 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Support fixtures for namespaced models [#2965 state:resolved] | Andrew White | 2010-04-25 | 3 | -0/+11 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Refactor compute_type to handle situations where the correct class is ↵ | Andrew White | 2010-04-12 | 1 | -0/+12 | |
| | | | | | | already loaded Signed-off-by: wycats <wycats@gmail.com> | |||||
* | Add Relation extensions | Pratik Naik | 2010-04-02 | 1 | -0/+6 | |
| | ||||||
* | Add the ability to specify table_name_prefix on individual modules | Andrew White | 2010-03-28 | 1 | -0/+17 | |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | |||||
* | Add :dependent = to has_one and has_many [#3075 state:resolved] | Rizwan Reza | 2010-03-28 | 1 | -0/+5 | |
| | ||||||
* | Fix associations to call :destroy or :delete based on the right :dependent ↵ | Carlos Antonio da Silva | 2010-03-09 | 2 | -8/+5 | |
| | | | | | | option Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Fix a bug where default_scope was overriding attributes given on model ↵ | Henry Hsu | 2010-02-26 | 1 | -0/+5 | |
| | | | | | | initialization [#3218 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Axe AM state machine | Joshua Peek | 2010-01-30 | 1 | -27/+0 | |
| | | | | We're going do it eventually, get it done before 3.0 is final. | |||||
* | Make default_scope work with Relations | Pratik Naik | 2010-01-23 | 1 | -0/+5 | |
| | ||||||
* | Simplify calculation scope building. Remove :order from associations as it ↵ | Pratik Naik | 2010-01-18 | 2 | -6/+4 | |
| | | | | is troublesome w/ calculation methods using postgresql. | |||||
* | Rename named_scope to scope | Pratik Naik | 2010-01-18 | 7 | -27/+27 | |
| | ||||||
* | Make relations work as scopes | Pratik Naik | 2010-01-17 | 1 | -4/+4 | |
| | ||||||
* | Make sure named_scope names are not used as method names already | Pratik Naik | 2010-01-17 | 1 | -2/+2 | |
| | ||||||
* | Rollback the transaction when one of the autosave associations fails to ↵ | Eloy Duran | 2010-01-08 | 4 | -0/+24 | |
| | | | | save. [#3391 state:resolved] | |||||
* | Add failing test that triggers the stack overflow | Bryan Stearns | 2010-01-08 | 2 | -0/+7 | |
| | ||||||
* | Simplify repair_validations on AR and make it work with new callbacks. | José Valim | 2010-01-01 | 1 | -2/+4 | |
| | ||||||
* | Refactored previous changes to nested attributes. | Eloy Duran | 2009-12-28 | 2 | -0/+4 | |
| | ||||||
* | Make polymorphic_inverse_of in Reflection throw an ↵ | Murray Steele | 2009-12-28 | 1 | -1/+2 | |
| | | | | | | InverseOfAssociationNotFoundError if the supplied class doesn't have the appropriate association. [#3520 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | |||||
* | Add inverse polymorphic association support. [#3520 state:resolved] | George Ogata | 2009-12-28 | 3 | -0/+4 | |
| | | | | Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | |||||
* | delete correct records for a has_many with :primary_key and :dependent => ↵ | Matt Jones | 2009-11-10 | 1 | -0/+2 | |
| | | | | | | :delete_all Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Define autosave association callbacks when using accepts_nested_attributes_for. | Eloy Duran | 2009-11-07 | 2 | -2/+2 | |
| | | | | | | | This way we don't define all the validation methods for all associations by default, but only when needed. [#3355 state:resolved] | |||||
* | Allow accepts_nested_attributes_for :reject_if option accept symbols for ↵ | Pratik Naik | 2009-10-07 | 1 | -0/+4 | |
| | | | | | | | | using a method Conflicts: activerecord/lib/active_record/nested_attributes.rb | |||||
* | Make has_one with :conditions hash scope build or creation of the associated ↵ | Luciano G Panaro | 2009-09-28 | 1 | -0/+2 | |
| | | | | | | | object with those conditions Signed-off-by: Michael Koziarski <michael@koziarski.com> [#3088 state:committed] | |||||
* | Define autosave association validation methods only when needed. [#3161 ↵ | Alexey Kovyrin | 2009-09-12 | 2 | -4/+7 | |
| | | | | | | state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | |||||
* | Fix has_one with foreign_key and primary_key association bug which caused ↵ | Graeme Porteous | 2009-09-12 | 1 | -0/+1 | |
| | | | | | | | | the associated object being lost when saving the owner. [#1756 state:resolved] Mixed in a bit from patch by ransom-briggs. [#2813 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | |||||
* | Explicitely setting `autosave => false' should override new_record ↵ | Eloy Duran | 2009-09-12 | 1 | -0/+5 | |
| | | | | | | autosaving. [#2214 state:resolved] Original author is Jacob. | |||||
* | Raise an exception with friendlier error message when attempting to build a ↵ | Mike Breen | 2009-09-12 | 1 | -0/+2 | |
| | | | | | | polymorphic belongs_to with accepts_nested_attributes_for. [#2318 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com> | |||||
* | Refactor new callbacks and AR implementation. | José Valim | 2009-09-08 | 3 | -3/+20 | |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | Changed ActiveRecord to use new callbacks and speed up observers by only ↵ | José Valim | 2009-09-08 | 3 | -5/+10 | |
| | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | has_many :through create should not raise validation errors | railsbob | 2009-08-09 | 2 | -0/+6 | |
| | | | | | | [#2934 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Prevent overwriting of table name in merging SQL conditions [#2949 ↵ | Tristan Dunn | 2009-08-10 | 1 | -1/+5 | |
| | | | | state:resolved] | |||||
* | Enable has_many :through for going through a has_one association on the join ↵ | Gabe da Silveira | 2009-08-10 | 1 | -0/+1 | |
| | | | | | | model [#2719 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Fix for nested :include with namespaced models. | Rich Bradley | 2009-08-09 | 1 | -1/+1 | |
| | | | | [#260 state:committed] | |||||
* | Adding :from scoping to ActiveRecord calculations | Matt Duncan | 2009-08-09 | 1 | -0/+2 | |
| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1229 state:committed] |