fisting indentation
This commit is contained in:
parent
84f0a0bc30
commit
30abb01d07
@ -50,9 +50,9 @@ def find_each(options = {})
|
||||
def find_in_batches(options = {})
|
||||
relation = self
|
||||
|
||||
if orders.present? || taken.present?
|
||||
ActiveRecord::Base.logger.warn("Scoped order and limit are ignored, it's forced to be batch order and batch size")
|
||||
end
|
||||
if orders.present? || taken.present?
|
||||
ActiveRecord::Base.logger.warn("Scoped order and limit are ignored, it's forced to be batch order and batch size")
|
||||
end
|
||||
|
||||
if (finder_options = options.except(:start, :batch_size)).present?
|
||||
raise "You can't specify an order, it's forced to be #{batch_order}" if options[:order].present?
|
||||
|
Loading…
Reference in New Issue
Block a user