Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| | | ||||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-10-02 | 1 | -1/+3 | |
|\ \ | ||||||
| * | | Make has_one with :conditions hash scope build or creation of the associated ↵ | Luciano G Panaro | 2009-09-28 | 1 | -1/+3 | |
| | | | | | | | | | | | | | | | | | | | | | object with those conditions Signed-off-by: Michael Koziarski <michael@koziarski.com> [#3088 state:committed] | |||||
* | | | Merge commit 'rails/master' | Emilio Tagua | 2009-09-14 | 1 | -3/+4 | |
|\| | | ||||||
| * | | Added some documentation about setting :autosave => false on an association. | Eloy Duran | 2009-09-12 | 1 | -3/+4 | |
| | | | ||||||
* | | | Merge commit 'rails/master' | Emilio Tagua | 2009-09-08 | 1 | -17/+36 | |
|\| | | ||||||
| * | | Changed ActiveRecord to use new callbacks and speed up observers by only ↵ | José Valim | 2009-09-08 | 1 | -17/+36 | |
| | | | | | | | | | | | | | | | | | | notifying events that are actually being consumed. Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | | | Merge commit 'rails/master' | Emilio Tagua | 2009-09-08 | 1 | -11/+2 | |
|\| | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb | |||||
| * | | Revert "Assert primary key does not exist in habtm when the association is ↵ | Jeremy Kemper | 2009-09-02 | 1 | -11/+11 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | defined, instead of doing that everytime a record is inserted." Test failures on PostgreSQL. [#3128 state:open] This reverts commit da636809daca9c338200811d3590e446f57c8e81. | |||||
* | | | Merge commit 'rails/master' | Emilio Tagua | 2009-09-01 | 1 | -2/+11 | |
|\| | | |/ |/| | | | | | Conflicts: activerecord/lib/active_record/associations.rb | |||||
| * | Assert primary key does not exist in habtm when the association is defined, ↵ | José Valim | 2009-09-01 | 1 | -12/+12 | |
| | | | | | | | | | | | | | | | | instead of doing that everytime a record is inserted. [#3128 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | | Remove useless conditionals/local var. | Emilio Tagua | 2009-08-19 | 1 | -5/+1 | |
| | | ||||||
* | | Make sure join association methods are called once. | Emilio Tagua | 2009-08-19 | 1 | -9/+10 | |
| | | ||||||
* | | Don't sanitize_sql where it doesn't make sense. | Emilio Tagua | 2009-08-19 | 1 | -2/+2 | |
| | | ||||||
* | | Remove old method and comment. | Emilio Tagua | 2009-08-19 | 1 | -14/+0 | |
| | | ||||||
* | | Remove useless InnerJoinDependency, inner joins are performed through | Emilio Tagua | 2009-08-19 | 1 | -21/+4 | |
| | | | | | | | | Arel::InnerJoin. | |||||
* | | Remove whitespace. | Emilio Tagua | 2009-08-19 | 1 | -0/+1 | |
| | | ||||||
* | | Use immutable relation objects to generate queries. | Emilio Tagua | 2009-08-18 | 1 | -19/+18 | |
| | | ||||||
* | | Use finder options as relation method names to provide more familiar | Emilio Tagua | 2009-08-18 | 1 | -17/+17 | |
| | | | | | | | | | | naming. Use bang methods convention in methods that alter the relation. | |||||
* | | Clean up relation joins when finding records with included associations. | Emilio Tagua | 2009-08-17 | 1 | -12/+12 | |
| | | ||||||
* | | Use ARel's joins when building a query for finding records with included | Emilio Tagua | 2009-08-14 | 1 | -48/+58 | |
| | | | | | | | | associations. | |||||
* | | Merge commit 'rails/master' | Emilio Tagua | 2009-08-10 | 1 | -17/+49 | |
|\| | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/calculations.rb activerecord/lib/active_record/connection_adapters/mysql_adapter.rb activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | |||||
| * | Enable has_many :through for going through a has_one association on the join ↵ | Gabe da Silveira | 2009-08-10 | 1 | -2/+29 | |
| | | | | | | | | | | | | model [#2719 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
| * | Changed to use klass instead of constantizing in assign_ids generated method | Dmitry Ratnikov | 2009-08-09 | 1 | -1/+1 | |
| | | | | | | | | | | | | [#260 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
| * | Fix for nested :include with namespaced models. | Rich Bradley | 2009-08-09 | 1 | -1/+1 | |
| | | | | | | | | [#260 state:committed] | |||||
* | | Removed unused methods. | Emilio Tagua | 2009-08-07 | 1 | -70/+56 | |
| | | ||||||
* | | Removed useless OR. | Emilio Tagua | 2009-08-07 | 1 | -1/+1 | |
| | | ||||||
* | | More work on removing plain SQL from associations and use ARel instead. | Emilio Tagua | 2009-08-07 | 1 | -20/+19 | |
| | |