Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoid method_missing and reduce method calls

  • Loading branch information...
commit 2ef60690ff9b12ab9440e667704f70df0af71188 1 parent ac89275
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation/batches.rb
View
2  activerecord/lib/active_record/relation/batches.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.