aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/finder_methods.rb
Commit message (Expand)AuthorAgeFilesLines
* [ci skip] Fix the FinderMethods#find documentakihiro172016-03-141-2/+2
* default second_to_last to primary_key index if no order suppliedBrian Christian2016-02-271-1/+7
* refactor AR second_to_last to use array methodsBrian Christian2016-02-271-1/+6
* AR #second_to_last tests and finder methodsBrian Christian2016-02-271-4/+12
* Mutating the result of Relation#to_a should not affect the relationMatthew Draper2016-02-211-3/+3
* Remove the method already overridden by private methodMehmet Emin İNAÇ2016-02-141-13/+0
* Merge pull request #23377 from bogdan/last-with-sqlEileen M. Uchitelle2016-02-131-9/+19
|\
| * Make ActiveRecord::Relation#last to reverse SQL orderBogdan Gusiev2016-02-131-9/+19
* | Fix grammar `a` to `an` [ci skip]Ryuta Kamizono2016-02-131-1/+1
|/
* remove warnings from FinderMethodsyuuji.yaginuma2016-02-111-4/+4
* rename to 'second_to_last' and 'third_to_last'Brian Christian2016-02-101-12/+12
* allow Array.penultimate and Array.antepenultiate access methodsBrian Christian2016-02-091-0/+32
* Extract a Relation#arel_attributeMatthew Draper2016-02-041-2/+2
* Defer Arel attribute lookup to the model classMatthew Draper2016-02-041-2/+2
* Revert "Merge pull request #16400 from bogdan/last-with-sql"Sean Griffin2016-02-011-17/+22
* Reworked ActiveRecord::Relation#last to always use SQLBogdan Gusiev2016-01-281-22/+17
* Consistently warn that passing an offset to `find_nth` is deprecatedBen Woosley2016-01-271-11/+10
* Fix `first(limit)` to take advantage of `loaded?` records if availableBen Woosley2015-12-241-5/+20
* Deprecate passing `offset` to `find_nth`Ben Woosley2015-12-241-8/+16
* Merge pull request #22653 from matthewd/find_array_orderedMatthew Draper2015-12-181-0/+17
|\
| * Implement limit & offset for ourselvesMatthew Draper2015-12-181-6/+19
| * using order_values method instead of relying on ActiveRecord::Relation @value...Miguel Grazziotin2015-06-191-2/+2
| * WIP: fixing the limit bug and introducing new tests (failing for now) on .fin...Miguel Grazziotin2015-06-191-3/+5
| * do not change the order of the result if the object was already ordered by th...Miguel Grazziotin2015-06-051-0/+1
| * [#20338] improving implementation, fixing and adding some more specsMiguel Grazziotin2015-06-031-5/+2
| * [#20338] WIP: first basic implementation and specsMiguel Grazziotin2015-05-291-1/+5
* | Revert "Perform a more efficient query in `Relation#any?`"Sean Griffin2015-12-141-7/+2
* | Perform a more efficient query in `Relation#any?`Sean Griffin2015-12-141-2/+7
* | applies new doc guidelines to Active Record.Yves Senn2015-10-141-20/+20
* | Extra caller details added to ActiveRecord::RecordNotFoundSameer Rahmani2015-07-211-1/+2
* | Include `Enumerable` in `ActiveRecord::Relation`Sean Griffin2015-06-191-5/+2
|/
* [ci skip] Remove comments about Rails 3.1claudiob2015-05-111-3/+3
* [ci skip] Stop explaining finders for Rails 3claudiob2015-05-101-14/+2
* Raise ArgumentError when find_by receives no argumentsKohei Suzuki2015-04-111-4/+4
* [ci skip] Combine complementary AR #find doc linesAlexander Dimitriyadi2015-03-301-3/+1
* Fix referencing wrong aliases while joining tables of has many throughpinglamb2015-03-221-1/+1
* Removed non-standard and unused require 'active_support/deprecation' from par...Vipul A M2015-02-271-1/+0
* Remove Relation#bind_paramsSean Griffin2015-01-271-3/+3
* Unify access to bind values on RelationSean Griffin2015-01-271-3/+3
* Don't remove join dependencies in `Relation#exists?`Sean Griffin2015-01-231-1/+1
* Go through normal where logic in `apply_join_dependency`Sean Griffin2014-12-261-1/+1
* Update Arel usage for rails/arel#98fc259Sean Griffin2014-11-291-4/+4
* Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-291-1/+1
* 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