aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/named_scope_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Ensure nested with_scope merges conditions inside out [#2193 state:resolved]Manfred Stienstra2009-03-101-8/+14
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Methods invoked within named scope Procs should respect the scope stack. ↵jvoorhis2009-03-061-0/+4
| | | | | | [#1267 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed bug that makes named_scopes _forgot_ current scopeDiego Algorta2009-02-251-0/+9
|
* Make sure inner scope conditions get a preference over the outer onesPratik Naik2009-01-241-0/+20
|
* Fix named scope tests for sqlite3 [#1667 state:resolved]Mike Gunderloy2008-12-301-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Introduce dynamic scopes for ActiveRecord: you can now use class methods ↵Yaroslav Markin2008-12-281-0/+20
| | | | | | like scoped_by_user_name(user_name) and scoped_by_user_name_and_password(user_name, password) that will use the scoped method with attributes you supply. [#1648 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Allowed passing arrays-of-strings to :join everywhere. Merge duplicate join ↵Pivotal Labs2008-09-241-0/+6
| | | | | | | strings to avoid table aliasing problems. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1077 state:committed]
* Make NamedScope#size behave identically to AssociationCollection#size. [#933 ↵Tom Stuart2008-08-291-0/+15
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix parentheses warningsMichael Koziarski2008-08-291-1/+1
|
* Fix NamedScope regex so methods containing "an" get delegated to ↵Jan De Poorter2008-08-291-0/+4
| | | | | | 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-0/+5
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix generated WHERE IN query for named scopes. [#583 state:resolved]Philip Hallstrom2008-08-211-0/+5
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Support find_all on named scopes. [#730 state:resolved]Ryan Bates2008-08-211-0/+4
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix ActiveRecord::NamedScope::Scope#respond_to? [#818 state:resolved]Eloy Duran2008-08-131-0/+6
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* fixing "test_any_should_not_load_results" so it doesn't depend on latest ↵Ryan Bates2008-08-081-3/+4
| | | | | | version of Mocha Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Ensure NamedScope#any? uses COUNT query wherever possible. [#680 state:resolved]Jan De Poorter2008-07-231-0/+22
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure NamedScope#build/create/create!/new works as expected when named ↵Daniel Guettler2008-07-091-0/+26
| | | | | | scope has hash conditions. [Daniel Guettler, Pratik Naik] [#419 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add extra hash conditions tests for named_scopePratik Naik2008-06-281-0/+4
|
* Fix column collision with named_scope and :joins. [#46 state:resolved]Mark Catley2008-06-221-1/+20
|
* Fixed that scopes defined with a string name could not be composedTarmo Tänav2008-06-221-0/+6
|
* Ensure named_scope#empty? uses count query. [#262 state:resolved]Ryan Bates2008-05-281-0/+8
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add first/last methods to associations/named_scope. [#226 state:resolved]Ryan Bates2008-05-201-0/+28
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixing test for named_scope through a has_many :throughRodrigo Kochenburger2008-05-151-2/+2
| | | | | The test that checks if a has_many :through association has access to named_scope had a typo and didn't have the proper fixtures loaded. [#190 state:resolved]
* Add test for named_scope#proxy_options. [#97 state:resolved]Duncan Beevers2008-05-111-0/+6
|
* Change tests against all scope to base scope as all is now used as a finder ↵David Heinemeier Hansson2008-04-301-14/+14
| | | | alias
* Ruby 1.9 compat. Trailing whitespace.Jeremy Kemper2008-03-301-29/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9146 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merge the has_finder gem, renamed as 'named_scope'. Closes #11404 [nkallen]Rick Olson2008-03-241-0/+116
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de