aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/named_scope.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge docrailsPratik Naik2009-01-181-1/+1
|
* Merge docrailsPratik Naik2008-09-031-13/+13
|
* Make NamedScope#size behave identically to AssociationCollection#size. [#933 ↵Tom Stuart2008-08-291-1/+5
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* 1.9: methods need to be coerced into stringsJoshua Peek2008-08-291-1/+1
|
* Use a set for the named scope methods not a big regexp.Michael Koziarski2008-08-291-2/+2
|
* Fix NamedScope regex so methods containing "an" get delegated to ↵Jan De Poorter2008-08-291-1/+1
| | | | | | proxy_found. [#901 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix incorrect signature for NamedScope#respond_to? [#852 state:resolved]Tom Lea2008-08-211-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Support find_all on named scopes. [#730 state:resolved]Ryan Bates2008-08-211-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix ActiveRecord::NamedScope::Scope#respond_to? [#818 state:resolved]Eloy Duran2008-08-131-1/+5
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure NamedScope#any? uses COUNT query wherever possible. [#680 state:resolved]Jan De Poorter2008-07-231-1/+9
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure NamedScope#build/create/create!/new works as expected when named ↵Daniel Guettler2008-07-091-1/+2
| | | | | | scope has hash conditions. [Daniel Guettler, Pratik Naik] [#419 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed that scopes defined with a string name could not be composedTarmo Tänav2008-06-221-0/+1
|
* Ensure named_scope#empty? uses count query. [#262 state:resolved]Ryan Bates2008-05-281-1/+5
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrails.Pratik Naik2008-05-251-4/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add first/last methods to associations/named_scope. [#226 state:resolved]Ryan Bates2008-05-201-1/+23
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* - Updated tzinfo to use Rational() instead of Rational.new! due to "private ↵Nate Wiger2008-05-191-2/+2
| | | | | | method new!" in Ruby 1.9 - Added ^object_id$ as ignore pattern to fixing "redefining object_id" issue in Ruby 1.9 Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Add test for named_scope#proxy_options. [#97 state:resolved]Duncan Beevers2008-05-111-0/+12
|
* Let Base.all use conditions etc like first/lastDavid Heinemeier Hansson2008-04-281-1/+0
|
* Merge the has_finder gem, renamed as 'named_scope'. Closes #11404 [nkallen]Rick Olson2008-03-241-0/+128
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de