mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove conditional that is always true
This commit is contained in:
parent
f958ec169a
commit
e87ff50193
1 changed files with 2 additions and 3 deletions
|
@ -318,9 +318,8 @@ module ActiveRecord
|
|||
# Add the record to the current transaction so that the +after_rollback+ and +after_commit+ callbacks
|
||||
# can be called.
|
||||
def add_to_transaction
|
||||
if self.class.connection.add_transaction_record(self)
|
||||
remember_transaction_record_state
|
||||
end
|
||||
self.class.connection.add_transaction_record(self)
|
||||
remember_transaction_record_state
|
||||
end
|
||||
|
||||
# Executes +method+ within a transaction and captures its return value as a
|
||||
|
|
Loading…
Reference in a new issue