Module: ActiveRecordPostgresRecovery
- Defined in:
- lib/active_record_postgres_recovery.rb,
lib/active_record_postgres_recovery/handler.rb,
lib/active_record_postgres_recovery/railtie.rb,
lib/active_record_postgres_recovery/version.rb,
lib/active_record_postgres_recovery/configuration.rb,
lib/active_record_postgres_recovery/recovery_event.rb,
lib/active_record_postgres_recovery/sidekiq_middleware.rb,
lib/active_record_postgres_recovery/postgresql_adapter_patch.rb
Defined Under Namespace
Modules: Handler, PostgresqlAdapterPatch
Classes: Configuration, Railtie, RecoveryEvent, SidekiqMiddleware
Constant Summary
collapse
- VERSION =
'0.1.1'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
10
11
12
|
# File 'lib/active_record_postgres_recovery.rb', line 10
def configuration
@configuration ||= Configuration.new
end
|
Class Method Details
14
15
16
|
# File 'lib/active_record_postgres_recovery.rb', line 14
def configure
yield(configuration)
end
|
.report(event) ⇒ Object
18
19
20
21
22
23
|
# File 'lib/active_record_postgres_recovery.rb', line 18
def report(event)
configuration.reporter&.call(event)
rescue StandardError => e
report_reporter_failure(e, event)
nil
end
|