Module: SaferRailsConsole::Patches::Sandbox::AutoRollback::PostgreSQLAdapteRailsPatch
- Defined in:
- lib/safer_rails_console/patches/sandbox/auto_rollback.rb
Overview
Patch for the PostgreSQL database adapter for Rails 8.0 and above.
Instance Method Summary collapse
Instance Method Details
#internal_execute ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/safer_rails_console/patches/sandbox/auto_rollback.rb', line 29 def internal_execute(...) super rescue StandardError => e # rubocop:disable Layout/LineLength SaferRailsConsole::Patches::Sandbox::AutoRollback.handle_and_reraise_exception(e, 'PG::ReadOnlySqlTransaction') # rubocop:enable Layout/LineLength end |