aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Missing 1.8.7 backport extensionsJeremy Kemper2009-05-181-0/+1
|
* Merge commit 'origin/master'Yehuda Katz + Carl Lerche2009-05-141-9/+4
|\ | | | | | | | | | | Conflicts: actionpack/lib/action_controller/abstract/base.rb actionpack/lib/action_controller/routing.rb
| * Changed ActiveRecord::Base#exists? to invoke find_initial so that it is ↵Peter Marklund2009-05-141-8/+3
|/ | | | | | | compatible with, and doesn't lose, :include scopes (references to eager loaded tables) Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2543 state:committed]
* Cherry-pick core extensionsJeremy Kemper2009-05-131-6/+15
|
* Opt in to DependenciesJeremy Kemper2009-04-221-0/+1
|
* Ensure JoinAssociation uses aliased table name when multiple associations ↵Pratik Naik2009-04-201-2/+2
| | | | have hash conditions on the same table
* Merge docrailsPratik Naik2009-03-241-10/+13
|
* Merge docrailsPratik Naik2009-03-161-2/+2
|
* Fix spelling of an internal method [#1734 state:resolved]Chris Kampmeier2009-03-121-3/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Don't duplicate :order from scope and options, it makes mysql do extra workJeremy Kemper2009-03-101-1/+3
|
* Ensure nested with_scope merges conditions inside out [#2193 state:resolved]Manfred Stienstra2009-03-101-11/+8
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Allow find(:last) :order be a symbol [#2024 state:resolved]Rob Anderton2009-03-091-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix find_by_last when order is given [#2127 state:committed]Jan De Poorter2009-03-091-1/+1
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Allow :having conditions to be sanitized like regular :condition. [#2158 ↵Will Bryant2009-03-061-2/+2
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure supplie :from has precedence over scoped :from [#1370 state:resolved]Pratik Naik2009-03-061-1/+1
|
* Fix that scoped find with :group and :having [#2006 state:resolved]Mike Gunderloy2009-02-281-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge with docrailsPratik Naik2009-02-241-1/+2
|
* Added ActiveRecord::Base.each and ActiveRecord::Base.find_in_batches for ↵David Heinemeier Hansson2009-02-231-1/+1
| | | | batch processing [DHH/Jamis Buck]
* support end-exclusive ... Ranges in SQL hash condition sanitization properlyWill Bryant2009-02-061-6/+10
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1865 state:committed]
* Add ActiveRecord::Base.exists? with no args [#1817 state:committed]Scott Taylor2009-02-051-2/+4
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Add support for nested object forms to ActiveRecord and the helpers in ↵Eloy Duran2009-02-011-0/+5
| | | | | | | | ActionPack Signed-Off-By: Michael Koziarski <michael@koziarski.com> [#1202 state:committed]
* Ensure whitespaces are stripped when merging string joins. [#1297 ↵Filip H.F. "FiXato" Slagter2009-01-281-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add array id support to Model.update_counters. [#1254 state:resolved] ↵Pratik Naik2009-01-281-2/+17
| | | | [Carlos Júnior]
* Make sure inner scope conditions get a preference over the outer onesPratik Naik2009-01-241-2/+6
|
* Merge docrailsPratik Naik2009-01-181-48/+74
|
* Merge branch 'master' of git@github.com:rails/railsDavid Heinemeier Hansson2008-12-281-1/+47
|\
| * Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-281-1/+47
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Introduce dynamic scopes for ActiveRecord: you can now use class methods ↵Yaroslav Markin2008-12-281-1/+24
|/ | | | | | 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>
* Refactor ActiveRecord::Base#new_record? [#1647 state:committed]Yaroslav Markin2008-12-271-1/+1
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* ActiveRecord::Base#new_record? now returns false for existing records (was ↵Yaroslav Markin2008-12-271-2/+2
| | | | | | nil) [#1219 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* ActiveRecord::QueryCache middlewareJoshua Peek2008-12-221-1/+1
|
* Ensure Model#last doesn't affects order for another finders inside the same ↵Daniel Luz2008-12-211-3/+8
| | | | | | scope [#1499 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrailsPratik Naik2008-12-191-2/+1
|
* Make exceptions raise from find_by_foo! have a more helpful message [#1567 ↵Frederick Cheung2008-12-181-1/+1
| | | | state:resolved]
* Update documentation for default_scopeDaniel Luz2008-12-161-2/+2
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Benchmark.msJeremy Kemper2008-12-091-2/+2
|
* Merge with docrailsPratik Naik2008-12-071-14/+42
|
* Add :having option to find, to use in combination with grouped finds. Also ↵miloops2008-12-011-3/+6
| | | | | | | added to has_many and has_and_belongs_to_many associations. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1028 state:committed]
* get activerecord tests passing with lazy loadingJoshua Peek2008-11-241-0/+3
|
* Autoload ActiveRecord filesJoshua Peek2008-11-241-0/+11
|
* Docfix [#1444 state:committed]David Heinemeier Hansson2008-11-231-2/+2
|
* Fix default_scope to work in combination with named scopesTom Stuart2008-11-171-1/+1
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Ensure shared default_scoping stack is duped before assigning to thread localJoshua Peek2008-11-161-1/+1
|
* Added default_scope to Base [#1381 state:committed] (Paweł Kondzior)Pratik Naik2008-11-161-1/+15
|
* Revert "Added default_scope to Base [#1381 state:committed] (Paweł ↵David Heinemeier Hansson2008-11-161-10/+0
| | | | | | Kondzior)" -- won't gel with threads. This reverts commit ff594b2bc94ff2a942fe6ca05672387722dee686.
* Added default_scope to Base [#1381 state:committed] (Paweł Kondzior)David Heinemeier Hansson2008-11-161-0/+10
|
* Moved the * strings out of construct_finder_sql to a new default_select ↵Will Bryant2008-11-151-1/+9
| | | | | | | method so it can be overridden by plugins cleanly Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1371 state:resolved]
* Fix memory leak issue in ActiveRecord scoped_methodsJoshua Peek2008-11-061-2/+1
|
* Make #destroy write 1 line into log (instead of 3) (Dmitry Sokurenko) [#689 ↵David Heinemeier Hansson2008-10-291-4/+5
| | | | status:committed]
* Fixed that serialized strings should never be type-casted (i.e. turning ↵David Heinemeier Hansson2008-10-271-1/+1
| | | | "Yes" to a boolean)(Andreas Korth) [#857 state:committed]