aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/finder_methods.rb
Commit message (Expand)AuthorAgeFilesLines
* Handle `RangeError` from casting in `find_by` and `find_by!` on RelationSean Griffin2014-11-021-0/+4
* Don't duplicate predicate building logic in Relation findersSean Griffin2014-11-011-5/+2
* Treat strings greater than int max value as out of rangeSean Griffin2014-10-311-0/+2
* let's warn with heredocsXavier Noria2014-10-281-4/+9
* Remove duplicate error message "Couldn't find..."claudiob2014-10-131-6/+10
* Merge pull request #15791 from zev/add_model_to_recordnotfound_messageAaron Patterson2014-09-191-8/+8
|\
| * Update RecordNotFound exception cases to include a message with theZev Blut2014-06-181-8/+8
* | Fixed regression with referencing polymorphic assoc in eager-loadGodfrey Chan2014-09-051-1/+2
* | Fixes the `Relation#exists?` to work with polymorphic associations.Kassio Borges2014-08-181-1/+1
|/
* ActiveRecord::FinderMethods.find passes proc parameter #15382James Yang2014-06-101-1/+1
* WIP: pass existing joins to construct_join_dependencyMatt Jones2014-05-161-1/+10
* Merge branch 'master' into adequaterecordAaron Patterson2014-04-251-1/+1
|\
| * Fix a typo in the doc of forty_two AR FinderMethodEric Bouchut2014-04-241-1/+1
* | Merge branch 'master' into adequaterecordAaron Patterson2014-04-141-14/+22
|\|
| * don't bother with an offset if the offset is zeroAaron Patterson2014-04-121-6/+9
| * only add the offset and index when we need toAaron Patterson2014-04-121-8/+9
| * remove branching logic from calls to find_nthAaron Patterson2014-04-121-6/+10
* | Merge branch 'master' into adequaterecordAaron Patterson2014-03-131-2/+13
|\|
| * passing an instance of an AR object to `find` is deprecatedAaron Patterson2014-03-131-1/+5
| * passing an ActiveRecord object to `exists?` is deprecated.Aaron Patterson2014-03-131-1/+8
* | `where` automatically uses bind values nowAaron Patterson2014-03-131-5/+2
* | Merge branch 'master' into adequaterecordAaron Patterson2014-03-131-1/+6
|\|
| * Make exists? use bound values.Martin Schürrer2014-03-041-1/+6
* | Merge branch 'master' into adequaterecordAaron Patterson2014-02-171-11/+99
|\|
| * guarantee a list in the alias tracker so we can remove a conditionalAaron Patterson2014-02-141-1/+9
| * Fix `ActiveRecord::RecordNotFound` error message with custom primary keyKuldeep Aggarwal2014-01-251-2/+2
| * Ensure AR #second, #third, etc. finders work through associationsJason Meller2014-01-211-8/+8
| * Ensure #second acts like #first AR finderJason Meller2014-01-201-7/+87
* | adding bind values to the manager objectAaron Patterson2014-01-131-1/+2
|/
* doc, API example on how to use `Model#exists?` with multiple IDs. [ci skip]Yves Senn2014-01-101-0/+1
* Fix offset with last.Lauro Caetano2013-12-031-1/+1
* document id prefixed String usage of `.find`. refs #12891 [ci skip]Yves Senn2013-11-151-5/+6
* Merge branch 'master' into joindepAaron Patterson2013-10-211-0/+2
|\
| * Raise an exception when model without primary key calls .find_with_idsShimpei Makimoto2013-10-211-0/+2
| * Don't remove the select values to add they back againRafael Mendonça França2013-10-151-1/+1
* | Merge branch 'master' into joindepAaron Patterson2013-10-151-2/+1
|\|
| * Merge pull request #11791 from versioncontrol/includes_with_persistent_selectRafael Mendonça França2013-10-121-1/+1
| |\
| | * Fixes #11773 when using includes combined with select, the select statement w...Edo Balvers2013-10-081-1/+1
* | | keep a cache on the alias objectAaron Patterson2013-10-141-1/+1
* | | store aliases in a better structureAaron Patterson2013-10-141-1/+3
* | | eliminate single use methodAaron Patterson2013-10-131-6/+3
* | | eliminate duplicate code from to_sqlAaron Patterson2013-10-131-4/+8
* | | calling construct_relation_for_association_find is no longer necessaryAaron Patterson2013-10-131-1/+1
* | | push up `select` exclusionAaron Patterson2013-10-131-3/+4
* | | JoinDependency will take care of making things uniqueAaron Patterson2013-10-131-1/+1
|/ /
* / stuff the join dependency object in the "anything goes" hash.Aaron Patterson2013-10-101-1/+1
|/
* let AR::FinderMethods#exists? return singletons in all cases [closes #11592]Xavier Noria2013-08-191-7/+7
* fix visibility of the relation construction methodsAaron Patterson2013-07-091-5/+7
* pass arel to select_all rather than depend on method_missingAaron Patterson2013-07-091-1/+1
* Extract common query to a constant.Vipul A M2013-07-061-1/+3