Class: RailsBand::DeprecationSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/rails_band/deprecation_subscriber.rb

Overview

DeprecationSubscriber is responsible for logging deprecation warnings.

Defined Under Namespace

Classes: DeprecationEvent

Instance Method Summary collapse

Instance Method Details

#deprecation(event) ⇒ Object



27
28
29
# File 'lib/rails_band/deprecation_subscriber.rb', line 27

def deprecation(event)
  consumer&.call(DeprecationEvent.new(event))
end