Skip to content

Commit

Permalink
avoid method_missing and reduce method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Sep 10, 2010
1 parent a513f8f commit a8b4bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation/batches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def find_each(options = {})
def find_in_batches(options = {})
relation = self

if orders.present? || taken.present?
unless arel.orders.blank? && arel.taken.blank?
ActiveRecord::Base.logger.warn("Scoped order and limit are ignored, it's forced to be batch order and batch size")
end

Expand Down

0 comments on commit a8b4bdb

Please sign in to comment.