1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

avoid method_missing and reduce method calls

This commit is contained in:
Aaron Patterson 2010-09-10 10:22:22 -07:00
parent a513f8f8bb
commit a8b4bdb3d6

View file

@ -50,7 +50,7 @@ module ActiveRecord
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