aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
Commit message (Collapse)AuthorAgeFilesLines
...
* | typecast columns based on the returned typesAaron Patterson2012-02-091-2/+14
|/
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-02-091-2/+2
|\ | | | | | | | | Conflicts: activerecord/lib/active_record/relation/query_methods.rb
| * use appropriate words for docs of Model.noneRohit Arondekar2012-02-071-2/+2
| |
| * minor tidy up of none relation query methodRohit Arondekar2012-02-061-2/+2
| |
| * Fix code example in ActiveRecord::Relation#noneCarlos Antonio da Silva2012-02-011-3/+3
| |
* | AR::Relation#pluck: improve to work with joinsBogdan Gusiev2012-02-081-0/+3
| |
* | document the AR none method [ci skip]Vijay Dev2012-02-011-7/+7
|/
* Revert "Merge pull request #4746 from jenslukowski/issue4718"Aaron Patterson2012-01-311-8/+1
| | | | | This reverts commit 5cad7a0dba652f3e942e58087bc88ba5c5390edc, reversing changes made to bb842e8d2111e50b21a14b8bd6d89371a4b9cd68.
* Merge pull request #4805 from xuanxu/none_and_null_object_patternJon Leighton2012-01-311-0/+33
|\ | | | | Added `none` query method to return zero records.
| * Added `none` query method to return zero records.Juanjo Bazán2012-01-311-0/+33
| | | | | | And added NullRelation class implementing the null object pattern for the `Relation` class.
* | Merge pull request #4746 from jenslukowski/issue4718Aaron Patterson2012-01-311-1/+8
|\ \ | |/ |/| Test and fix for issue 4718
| * fix for Issue 4718Jens Lukowski2012-01-291-1/+8
| |
* | rewrites a couple of alternations in regexps as character classesXavier Noria2012-01-301-1/+1
|/ | | | | Character classes are the specific regexp construct to express alternation of individual characters.
* select doesn't take multiple arguments - fixes #4539 [ci skip]Vijay Dev2012-01-191-5/+5
| | | | | Also, fixed the bit about returning AM::MissingAttributeError. This seems to be fixed earlier in 3-2-stable only.
* Deprecate inferred JOINs with includes + SQL snippets.Jon Leighton2012-01-161-2/+2
| | | | | | See the CHANGELOG for details. Fixes #950.
* infer references from Relation#orderJon Leighton2012-01-161-1/+7
|
* store references as a stringJon Leighton2012-01-161-1/+1
|
* automatically add references when we canJon Leighton2012-01-162-1/+15
|
* Add ActiveRecord::Relation#references (#950)Jon Leighton2012-01-161-1/+19
|
* Revert "Deprecate implicit eager loading. Closes #950."Jon Leighton2012-01-161-2/+2
| | | | This reverts commit c99d507fccca2e9e4d12e49b4387e007c5481ae9.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-01-111-0/+10
|\
| * add documentation explaining reorder behaviorMatt Jones2012-01-091-0/+10
| |
* | correctly handle order calls after a reorderMatt Jones + Scott Walker2012-01-033-7/+17
|/
* Deprecate implicit eager loading. Closes #950.Jon Leighton2011-12-291-2/+2
|
* Merge pull request #4216 from edgecase/master_fix_reorder_with_limited_idsAaron Patterson2011-12-281-1/+1
|\ | | | | allow reorder to affect eager loading correctly
| * allow reorder to affect eager loading correctlyMatt Jones + Scott Walker2011-12-281-1/+1
| |
* | refactor AR::PredicateBuilder.build_from_hashAkira Matsuda2011-12-291-35/+37
| |
* | where(foo: [1, nil]) becomes "WHERE foo = 1 OR foo IS NULL"Akira Matsuda2011-12-281-1/+4
| | | | | | | | was "WHERE foo IN (1) OR foo IS NULL" before
* | no need to compact an already compacted ArrayAkira Matsuda2011-12-281-1/+1
|/
* Make PredicateBuilder recognise AR::ModelJon Leighton2011-12-241-2/+2
|
* Fix #exists? for AR::ModelJon Leighton2011-12-241-1/+1
|
* Delete unnecessary line that was necessary before I changed the code and it ↵Jon Leighton2011-12-221-1/+0
| | | | became no longer necessary.
* Make ActiveRecord::Relation#pluck work with serialized attributesJon Leighton2011-12-221-4/+4
|
* Do not raise an exception if an invalid route was generated automatically.José Valim2011-12-161-1/+1
|
* Set up delegations also for to_a and arel branches.José Valim2011-12-151-2/+9
|
* Move delegation reponsibilities of Relation to a module. Also precompile ↵José Valim2011-12-151-0/+42
| | | | method missing calls for rofscale.
* ActiveRecord::Relation#pluck methodBogdan Gusiev2011-11-301-0/+17
|
* pushing caching and visitors down to the connectionAaron Patterson2011-11-191-1/+1
|
* Fixes issue #3483, regarding using a mixture of ranges and discrete values ↵Ryan Naughton2011-11-141-6/+8
| | | | in find conditions. Paired with Joey Schoblaska.
* exclude ORDER BY clause when querying Relation#exists?Akira Matsuda2011-11-091-1/+1
|
* Add ActiveRecord::Relation#uniq for toggling DISTINCT in the SQL queryJon Leighton2011-11-051-6/+24
|
* copy edits 908f2616Vijay Dev2011-09-201-4/+4
|
* Document ActiveRecord::QueryMethods#selectRyan Bigg2011-09-171-0/+29
|
* minor editVijay Dev2011-09-141-1/+1
|
* Add documentation for the extending method in ActiveRecord:QueryMethodsRyan Bigg2011-09-141-0/+36
|
* Merge pull request #2485 from akaspick/exists_fixJon Leighton2011-09-071-1/+3
|\ | | | | fix exists? to return false if passed nil (which may come from a missing
| * fix exists? to return false if passed nil (which may come from a missing URL ↵Andrew Kaspick2011-08-101-1/+3
| | | | | | | | param)
* | Use LIMIT sql word in last when it's possibleDamien Mathieu2011-09-051-1/+5
| |
* | use LIMIT SQL word in first - Closes #2783Damien Mathieu2011-09-051-1/+1
| |
* | We need to recorder here. Need to drop the order from default scope.Arun Agrawal2011-09-051-1/+1
| | | | | | Fixes #2832