Module: SaferRailsConsole::Patches::Sandbox::AutoRollback::LegacyMySQLAdapterRails67Patch
- Defined in:
- lib/safer_rails_console/patches/sandbox/auto_rollback.rb
Overview
Patch for the MySQL database adapter for Rails 6.x and 7.x.
Instance Method Summary collapse
Instance Method Details
#execute_and_free ⇒ Object
68 69 70 71 72 |
# File 'lib/safer_rails_console/patches/sandbox/auto_rollback.rb', line 68 def execute_and_free(...) super rescue StandardError => e SaferRailsConsole::Patches::Sandbox::AutoRollback.handle_and_reraise_exception(e, 'READ ONLY transaction') end |