instance method
enforced_prepend_option
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
enforced_prepend_option(position, options)
No documentation comment.
Parameters
-
positionreq -
optionsreq
Source
# File activerecord/lib/active_record/transactions.rb, line 358
def enforced_prepend_option(position, options)
if position == :after && ActiveRecord.run_after_transaction_callbacks_in_order_defined
{ prepend: !options[:prepend] }
else
{}
end
end
Defined in activerecord/lib/active_record/transactions.rb line 358
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Transactions::ClassMethods