aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-01-201-0/+14
|\
| * document ActiveRecord's except and onlyJordi Romero2011-01-151-0/+14
| | | | | | | | Document methods that allow easily override arel queries
* | Always return decimal average of integer fieldsRaimonds Simanovskis2011-01-101-9/+5
| | | | | | | | In previous version if database adapter (e.g. SQLite and Oracle) returned non-String calculated values then type_cast_using_column converted decimal average value of intefer field to integer value. Now operation parameter is always checked to decide which conversion of calculated value should be done.
* | use select_all because not all database adapters support bind valuesAaron Patterson2011-01-081-1/+1
| |
* | stop creating intermediate AR objects, just construct AR objects from a list ↵Aaron Patterson2011-01-071-1/+2
| | | | | | | | of hashes
* | Explicitly select * from has_and_belongs_to_many association tables, ↵Raimonds Simanovskis2011-01-041-1/+1
| | | | | | | | | | simplify exists? query Previous version (after commit 3103296a61709e808aa89c3d37cf22bcdbc5a675) was generating wrong SQL for Oracle when calling exists? method on HABTM association.
* | ActiveRecord::Relation#primary_key should return a string, just like ↵Jon Leighton2011-01-034-14/+14
| | | | | | | | ActiveRecord::Base.primary_key does.
* | Make Relation#create_with always merge rather than overwrite, not just when ↵Jon Leighton2011-01-032-4/+2
| | | | | | | | merging two relations. If you wish to overwrite, you can do relation.create_with(nil), or for a specific attribute, relation.create_with(:attr => nil).
* | Let AssociationCollection#find use #scoped to do its finding. Note that I am ↵Jon Leighton2011-01-031-1/+1
| | | | | | | | removing test_polymorphic_has_many_going_through_join_model_with_disabled_include, since this specifies different behaviour for an association than for a regular scope. It seems reasonable to expect scopes and association proxies to behave in roughly the same way rather than having subtle differences.
* | User id instead of quoted_id to prevent double quoting. Fixes failing test ↵Robert Pankowecki (Gavdi)2011-01-041-1/+1
| | | | | | | | for bug #6036.
* | Rename AssociationReflection#primary_key_name to foreign_key, since the ↵Jon Leighton2010-12-311-1/+1
| | | | | | | | options key which it relates to is :foreign_key
* | Specify the STI type condition using SQL IN rather than a whole load of ORs. ↵Jon Leighton2010-12-311-1/+5
|/ | | | Required a fix to ActiveRecord::Relation#merge for properly merging create_with_value. This also fixes a situation where the type condition was appearing twice in the resultant SQL query.
* arel can escape the id, so avoid using the database connectionAaron Patterson2010-12-221-1/+1
|
* Arel::Table#[] always returns an attribute, so no need for ||Aaron Patterson2010-12-221-1/+1
|
* to_sym stuff before passing it to arelAaron Patterson2010-12-221-1/+1
|
* ActiveRecord::Base.joins should allow single nil argument [#6181 state:resolved]Piotr Sarnacki2010-12-161-1/+1
|
* make sure that join nodes are uniqAaron Patterson2010-12-161-1/+1
|
* supporting arel AST nodes when building join statementsAaron Patterson2010-12-161-3/+15
|
* bucketing based on join typeAaron Patterson2010-12-161-8/+17
|
* taking advantage of the JoinSource node in the SQL ASTAaron Patterson2010-12-162-17/+8
|
* remove lasgn since AST is mutatedAaron Patterson2010-12-161-1/+1
|
* just mutate the ast, fewer lasgnsAaron Patterson2010-12-161-3/+2
|
* no more manager manipulation if there is no custom join astAaron Patterson2010-12-101-6/+5
|
* froms should never equal 0Aaron Patterson2010-12-101-2/+0
|
* manager will always be a managerAaron Patterson2010-12-101-10/+6
|
* eliminate lasgnsAaron Patterson2010-12-101-10/+10
|
* dealing with an AST manager, not a relation, so fix the variable namesAaron Patterson2010-12-101-12/+12
|
* adding a fixme commentAaron Patterson2010-12-081-0/+1
|
* renaming variables, making the join_ast method privateAaron Patterson2010-12-081-51/+27
|
* further reducing dependence on custom_joinsAaron Patterson2010-12-081-0/+2
|
* reducing use of custom joinsAaron Patterson2010-12-081-1/+6
|
* passing the ast to a table when the relation is a tableAaron Patterson2010-12-071-3/+20
|
* JoinDependency is always created with an AST nowAaron Patterson2010-12-071-1/+15
|
* passing the ast to JoinDependencyAaron Patterson2010-12-071-1/+1
|
* cleaning up custom_join_sql methodAaron Patterson2010-12-071-4/+6
|
* use the columns hash for primary key lookupAaron Patterson2010-12-031-1/+1
|
* fix warnings, stop using global variablesAaron Patterson2010-11-301-4/+2
|
* stop using splat args when we do not need themAaron Patterson2010-11-301-2/+2
|
* just grep the AST for OuterJoin nodes rather than converting the tree to SQLAaron Patterson2010-11-301-1/+1
|
* reduce method calls on arelAaron Patterson2010-11-303-3/+3
|
* making relationship merge cheaperAaron Patterson2010-11-301-3/+4
|
* use ARel rather than generate SQL stringsAaron Patterson2010-11-241-1/+1
|
* moving column_aliases to JoinDependencyAaron Patterson2010-11-241-10/+1
|
* just wrap as a sql literalAaron Patterson2010-11-231-2/+1
|
* Do not send id for quoting twice if the primary key is string.Neeraj Singh2010-11-231-1/+2
| | | | [#6022 state:resolved]
* skip cloning if arguments are blankAaron Patterson2010-11-221-8/+22
|
* group can be done by left side onlyAaron Patterson2010-11-171-6/+3
|
* collapsing same table / column WHERE clauses to be OR [#4598 state:resolved]Aaron Patterson2010-11-171-4/+25
|
* use shorter form for sql literalsAaron Patterson2010-11-171-1/+1
|
* refactor to reduce method callsAaron Patterson2010-11-161-10/+19
|