Module: SaferRailsConsole::Patches::Sandbox::AutoRollback::MySQLAdapterRailsPatch
- Defined in:
- lib/safer_rails_console/patches/sandbox/auto_rollback.rb
Overview
Patch for the MySQL database adapter for Rails 8.0 and above.
Instance Method Summary collapse
Instance Method Details
#internal_execute ⇒ Object
59 60 61 62 63 |
# File 'lib/safer_rails_console/patches/sandbox/auto_rollback.rb', line 59 def internal_execute(...) super rescue StandardError => e SaferRailsConsole::Patches::Sandbox::AutoRollback.handle_and_reraise_exception(e, 'READ ONLY transaction') end |