mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
avoid method_missing and reduce method calls
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user