1
0
Fork 0
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:
Aaron Patterson 2015-02-01 13:42:53 -08:00
parent f958ec169a
commit e87ff50193

View file

@ -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