提交 a8b4bdb3 编写于 作者: A Aaron Patterson

avoid method_missing and reduce method calls

上级 a513f8f8
...@@ -50,7 +50,7 @@ def find_each(options = {}) ...@@ -50,7 +50,7 @@ def find_each(options = {})
def find_in_batches(options = {}) def find_in_batches(options = {})
relation = self 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") ActiveRecord::Base.logger.warn("Scoped order and limit are ignored, it's forced to be batch order and batch size")
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册