instance method
act_on_ignored_order
Ruby on Rails 8.1.2
Since v5.2.8.1 PrivateSignature
act_on_ignored_order(error_on_ignore)
No documentation comment.
Parameters
-
error_on_ignorereq
Source
# File activerecord/lib/active_record/relation/batches.rb, line 369
def act_on_ignored_order(error_on_ignore)
raise_error = (error_on_ignore.nil? ? ActiveRecord.error_on_ignored_order : error_on_ignore)
if raise_error
raise ArgumentError.new(ORDER_IGNORE_MESSAGE)
elsif model.logger
model.logger.warn(ORDER_IGNORE_MESSAGE)
end
end
Defined in activerecord/lib/active_record/relation/batches.rb line 369
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Batches