Class: Rails::StructuredEventSubscriber

Inherits:
ActiveSupport::StructuredEventSubscriber show all
Defined in:
railties/lib/rails/structured_event_subscriber.rb

Overview

:nodoc:

Constant Summary

Constants inherited from ActiveSupport::StructuredEventSubscriber

ActiveSupport::StructuredEventSubscriber::DEBUG_CHECK

Instance Attribute Summary

Attributes inherited from ActiveSupport::StructuredEventSubscriber

#silenced_events

Attributes inherited from ActiveSupport::Subscriber

#patterns

Instance Method Summary collapse

Methods inherited from ActiveSupport::StructuredEventSubscriber

attach_to, #call, #emit_debug_event, #emit_event, #initialize, #silenced?

Methods inherited from ActiveSupport::Subscriber

attach_to, #call, detach_from, #initialize, method_added, subscribers

Constructor Details

This class inherits a constructor from ActiveSupport::StructuredEventSubscriber

Instance Method Details

#deprecation(event) ⇒ Object



7
8
9
10
11
12
13
14
# File 'railties/lib/rails/structured_event_subscriber.rb', line 7

def deprecation(event)
  emit_event("rails.deprecation",
    message: event.payload[:message],
    callstack: event.payload[:callstack],
    gem_name: event.payload[:gem_name],
    deprecation_horizon: event.payload[:deprecation_horizon],
  )
end