Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid deprecated String#to_a by using Array.wrap(...) instead of Array(...) | Jeremy Kemper | 2010-04-10 | 1 | -3/+4 |
| | |||||
* | Bring back +extra_conditions+. This effectively reverts ↵ | Carl Lerche | 2010-04-03 | 1 | -3/+3 |
| | | | | 386b7bfd9d78a6d8c8bc7cc4a310df806ad0ba57 | ||||
* | Make the query built by has_many ...., :dependent => :____ lazy since all ↵ | Carl Lerche | 2010-04-02 | 1 | -50/+22 |
| | | | | the information is not really available yet. | ||||
* | Remove an unused argument | Carl Lerche | 2010-04-02 | 1 | -2/+1 |
| | |||||
* | Fix honoring :primary_key option when joining or eager loading a belongs_to ↵ | Ernie Miller | 2010-03-29 | 1 | -1/+1 |
| | | | | | | | | association [#765 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Add :dependent = to has_one and has_many [#3075 state:resolved] | Rizwan Reza | 2010-03-28 | 1 | -2/+37 |
| | |||||
* | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 1 | -0/+1 |
| | |||||
* | avoiding a few closure references by evaling. [#4223 state:resolved] | Aaron Patterson | 2010-03-27 | 1 | -12/+18 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Merge branch 'master' into docrails | wycats | 2010-03-26 | 1 | -9/+0 |
|\ | |||||
| * | Move methods from association to relation finder methods. | Emilio Tagua | 2010-03-25 | 1 | -9/+0 |
| | | |||||
* | | fix habtm documentation to correct typo | Jeremy Roman | 2010-03-26 | 1 | -1/+1 |
|/ | | | | Signed-off-by: Rizwan Reza <rizwanreza@gmail.com> | ||||
* | cleaning up some test warnings | Aaron Patterson | 2010-03-14 | 1 | -2/+5 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Fix associations to call :destroy or :delete based on the right :dependent ↵ | Carlos Antonio da Silva | 2010-03-09 | 1 | -3/+3 |
| | | | | | | option Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | drying up more code in associations.rb | Aaron Patterson | 2010-03-06 | 1 | -17/+11 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | deleting repeated code | Aaron Patterson | 2010-03-06 | 1 | -17/+7 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Remove find_with_associations and related code from associations now that ↵ | Pratik Naik | 2010-01-20 | 1 | -67/+0 |
| | | | | Relation handles that stuff | ||||
* | Simplify construct_finder_arel_* methods | Pratik Naik | 2010-01-18 | 1 | -27/+7 |
| | |||||
* | Merge docrails | Pratik Naik | 2010-01-17 | 1 | -5/+3 |
| | |||||
* | Rename Model.active_relation to Model.unscoped | Pratik Naik | 2010-01-17 | 1 | -2/+2 |
| | |||||
* | Rename active_relation_engine -> arel_engine and active_relation_table -> ↵ | Pratik Naik | 2010-01-16 | 1 | -8/+8 |
| | | | | arel_table | ||||
* | Make scopes use relations under the hood | Pratik Naik | 2010-01-16 | 1 | -123/+96 |
| | |||||
* | Ensure using proper engine for Arel::Table | Pratik Naik | 2010-01-12 | 1 | -4/+4 |
| | |||||
* | Delay building arel relation as long as possible for improved introspection | Pratik Naik | 2010-01-12 | 1 | -7/+8 |
| | |||||
* | Renamed AssociationReflection #collection_association? to #collection?. | Eloy Duran | 2010-01-08 | 1 | -3/+3 |
| | |||||
* | Cleanup some code in nested_attributes.rb, autosave_association.rb, and ↵ | Eloy Duran | 2010-01-07 | 1 | -4/+3 |
| | | | | | | associations.rb with AssociationReflection#collection_association? Also cache the result value. | ||||
* | Reapply "Remove optional join_dependency argument as Relation always ↵ | Pratik Naik | 2010-01-03 | 1 | -2/+1 |
| | | | | supplies it" - Now without syntax errors | ||||
* | Revert "Remove optional join_dependency argument as Relation always supplies it" | Jeremy Kemper | 2010-01-02 | 1 | -1/+2 |
| | | | | This reverts commit 8e57deed8b4efad6ea1c551f415b74596111f890. | ||||
* | Remove optional join_dependency argument as Relation always supplies it | Pratik Naik | 2010-01-03 | 1 | -2/+1 |
| | |||||
* | Remove unused code from association.rb now that Relation takes care of ↵ | Pratik Naik | 2010-01-03 | 1 | -78/+0 |
| | | | | checking the referenced tables | ||||
* | Simply methods for checking eager loaded tables references in the query | Pratik Naik | 2010-01-03 | 1 | -7/+7 |
| | |||||
* | Rename Model.arel_table to Model.active_relation | Pratik Naik | 2010-01-02 | 1 | -2/+2 |
| | |||||
* | Remove unncessary arguments passed to arel_table | Pratik Naik | 2010-01-01 | 1 | -1/+2 |
| | |||||
* | Use PredicateBuilder for sql hash sanitization | Pratik Naik | 2010-01-01 | 1 | -1/+1 |
| | |||||
* | Migrate all the calculation methods to Relation | Pratik Naik | 2009-12-29 | 1 | -6/+5 |
| | |||||
* | Merge commit 'Fingertips/master' | Jeremy Kemper | 2009-12-28 | 1 | -2/+2 |
|\ | |||||
| * | Make polymorphic_inverse_of in Reflection throw an ↵ | Murray Steele | 2009-12-28 | 1 | -2/+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 Model.having and Relation#having | Pratik Naik | 2009-12-29 | 1 | -2/+4 |
|/ | |||||
* | Use relation.from when constructing a relation | Pratik Naik | 2009-12-28 | 1 | -2/+3 |
| | |||||
* | Add new finder methods to association collection. | Pratik Naik | 2009-12-27 | 1 | -2/+2 |
| | |||||
* | Rename Model.conditions and relation.conditions to .where | Pratik Naik | 2009-12-26 | 1 | -3/+3 |
| | |||||
* | When passing force_reload = true to an association, don't use the query ↵ | Will | 2009-12-16 | 1 | -2/+2 |
| | | | | | | cache [#1827 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Revert "Revert "Assert primary key does not exist in habtm when the ↵ | Jeremy Kemper | 2009-11-23 | 1 | -1/+9 |
| | | | | | | | | | | | | | association is defined, instead of doing that everytime a record is inserted."" This reverts commit 2b82708b0efb3a3458e8177beab58f0c585788ae. [#3128 state:resolved] Conflicts: activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb | ||||
* | Insert generated association members in the same order they are specified ↵ | Gabe da Silveira | 2009-11-17 | 1 | -2/+3 |
| | | | | | | | | when assigning to a has_many :through using the generated *_ids method [#3491 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Revert "Split arel_table into method to get a relation and another to ↵ | Jeremy Kemper | 2009-11-13 | 1 | -2/+2 |
| | | | | | | memoize the default relation." This reverts commit bd51790895fc75a3b4e19e8dd7aa6dc389d77068. | ||||
* | Split arel_table into method to get a relation and another to memoize the ↵ | Jeremy Kemper | 2009-11-13 | 1 | -2/+2 |
| | | | | default relation. | ||||
* | Ruby 1.9.2: avoid #flatten | Jeremy Kemper | 2009-11-13 | 1 | -6/+10 |
| | |||||
* | delete correct records for a has_many with :primary_key and :dependent => ↵ | Matt Jones | 2009-11-10 | 1 | -1/+1 |
| | | | | | | :delete_all Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Arel::In -> Arel::Predicates::In | Jeremy Kemper | 2009-11-02 | 1 | -1/+1 |
| | |||||
* | Merge branch 'associations_2' | Emilio Tagua | 2009-10-05 | 1 | -2/+2 |
|\ | |||||
| * | Added eager loading support to Relation and ActiveRecord#all. | Emilio Tagua | 2009-10-05 | 1 | -2/+2 |
| | |