Class: Apartment::LogSubscriber

Inherits:
ActiveRecord::LogSubscriber
  • Object
show all
Defined in:
lib/apartment/log_subscriber.rb

Overview

Custom Log subscriber to include database name and schema name in sql logs

Instance Method Summary collapse

Instance Method Details

#sql(event) ⇒ Object

NOTE: for some reason, if the method definition is not here, then the custom debug method is not called rubocop:disable Lint/UselessMethodDefinition



10
11
12
# File 'lib/apartment/log_subscriber.rb', line 10

def sql(event)
  super(event)
end