Module: Console::Adapter::Rails::ActiveRecord

Defined in:
lib/console/adapter/rails/active_record.rb

Defined Under Namespace

Classes: LogSubscriber

Class Method Summary collapse

Class Method Details

.apply!(notifications: ActiveSupport::Notifications) ⇒ Object



64
65
66
# File 'lib/console/adapter/rails/active_record.rb', line 64

def self.apply!(notifications: ActiveSupport::Notifications)
	LogSubscriber.attach_to(:active_record, LogSubscriber.new, notifications)
end