instance method
add_to_transaction
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v4.1.16Signature
add_to_transaction()
Add the record to the current transaction so that the :after_rollback and :after_commit callbacks can be called.
Source
# File activerecord/lib/active_record/transactions.rb, line 297
def add_to_transaction
if self.class.connection.add_transaction_record(self)
remember_transaction_record_state
end
end
Defined in activerecord/lib/active_record/transactions.rb line 297
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Transactions