aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/finder_methods.rb
Commit message (Expand)AuthorAgeFilesLines
* Translate numeric value out of range to the specific exceptionRyuta Kamizono2016-12-061-4/+4
* Restore RecordNotFound when *_ids= can't find records by IDDominic Cleal2016-11-241-4/+4
* Should except `:distinct` rather than `:order` for `exists?`Ryuta Kamizono2016-11-091-1/+1
* initialize errors with name of class and other paramsv.promzelev2016-09-231-2/+2
* Fix broken heredoc indentation caused by rubocop auto-correctRyuta Kamizono2016-09-031-3/+3
* Remove unnecessary ordinal methods for collection associationRyuta Kamizono2016-08-181-2/+10
* Finder bang method should call non bang methodRyuta Kamizono2016-08-161-16/+16
* Merge pull request #26097 from Dagnan/fix_recordnotfound_args_rebasedRafael França2016-08-161-4/+6
|\
| * When calling association.find RecordNotFound is now raised with the same argu...Michel Pigassou2016-08-131-4/+6
* | Add three new rubocop rulesRafael Mendonça França2016-08-161-1/+1
* | Remove `find_nth_with_limit_and_offset` private methodRyuta Kamizono2016-08-151-34/+13
|/
* revises most Lint/EndAlignment offensesXavier Noria2016-08-071-7/+7
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-168/+168
* applies new string literal convention in activerecord/libXavier Noria2016-08-061-4/+4
* `FinderMethods` uses `records` (`load_target`) when `loaded?` is trueRyuta Kamizono2016-07-281-4/+4
* Merge pull request #25271 from kamipo/prevent_range_error_for_existsSean Griffin2016-06-151-1/+3
|\
| * Prevent `RangeError` for `FinderMethods#exists?`Ryuta Kamizono2016-06-161-1/+3
* | Fix `calculate` with a string value in `from` and eager loadingRyuta Kamizono2016-06-131-9/+1
|/
* Exists shouldn't error when used with `includes`Sean Griffin2016-05-301-3/+3
* Pass over all Rails 5 warnings, to make sure:Vipul A M2016-04-121-2/+2
* [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