aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-02-12 16:53:51 +0000
committerPratik Naik <pratiknaik@gmail.com>2010-02-12 22:31:03 +0000
commitdc3cc6c608b93209b23bbebd2ade04835abd6f6c (patch)
tree4eab79705115229d73d4c38c84e5499638bfd3f9 /activerecord/lib/active_record/base.rb
parent5188c11d2eb7053a2471222de52cad5786febfc3 (diff)
downloadrails-dc3cc6c608b93209b23bbebd2ade04835abd6f6c.tar.gz
rails-dc3cc6c608b93209b23bbebd2ade04835abd6f6c.tar.bz2
rails-dc3cc6c608b93209b23bbebd2ade04835abd6f6c.zip
Move batch finders to Relation
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index c4e07e8786..f30eba4f06 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -557,6 +557,7 @@ module ActiveRecord #:nodoc:
alias :colorize_logging= :colorize_logging
delegate :find, :first, :last, :all, :destroy, :destroy_all, :exists?, :delete, :delete_all, :update, :update_all, :to => :scoped
+ delegate :find_each, :find_in_batches, :to => :scoped
delegate :select, :group, :order, :limit, :joins, :where, :preload, :eager_load, :includes, :from, :lock, :readonly, :having, :to => :scoped
delegate :count, :average, :minimum, :maximum, :sum, :calculate, :to => :scoped
@@ -2394,7 +2395,7 @@ module ActiveRecord #:nodoc:
# #save_with_autosave_associations to be wrapped inside a transaction.
include AutosaveAssociation, NestedAttributes
- include Aggregations, Transactions, Reflection, Batches, Serialization
+ include Aggregations, Transactions, Reflection, Serialization
end
end