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:
parent
a513f8f8bb
commit
a8b4bdb3d6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue