Module: SaferRailsConsole::Patches::Sandbox::AutoRollback::LegacyPostgreSQLAdapteRailsPatch
- Defined in:
- lib/safer_rails_console/patches/sandbox/auto_rollback.rb
Overview
Patch for the PostgreSQL database adapter for Rails 6.x and 7.x.
Instance Method Summary collapse
Instance Method Details
#execute_and_clear ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/safer_rails_console/patches/sandbox/auto_rollback.rb', line 40 def execute_and_clear(...) super rescue StandardError => e # rubocop:disable Layout/LineLength SaferRailsConsole::Patches::Sandbox::AutoRollback.handle_and_reraise_exception(e, 'PG::ReadOnlySqlTransaction') # rubocop:enable Layout/LineLength end |