mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge pull request #254 from TMXCredit/master
Use respond_to? with true to check inspect private/protected methods
This commit is contained in:
commit
c0c7885466
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ module DatabaseCleaner::ActiveRecord
|
|||
end
|
||||
|
||||
# The below is for handling after_commit hooks.. see https://github.com/bmabey/database_cleaner/issues/99
|
||||
if connection_class.connection.respond_to?(:rollback_transaction_records)
|
||||
if connection_class.connection.respond_to?(:rollback_transaction_records, true)
|
||||
connection_class.connection.send(:rollback_transaction_records, true)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue