Module: BrightSerializer::Extensions

Included in:
Serializer
Defined in:
lib/bright_serializer/extensions.rb,
lib/bright_serializer/extensions/instrumentation.rb

Defined Under Namespace

Modules: Instrumentation

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/bright_serializer/extensions.rb', line 5

def self.included(base)
  instrumentation_extension(base)
end

.instrumentation_extension(base) ⇒ Object



9
10
11
12
13
14
# File 'lib/bright_serializer/extensions.rb', line 9

def self.instrumentation_extension(base)
  return unless defined? ActiveSupport::Notifications

  require_relative 'extensions/instrumentation'
  base.prepend Instrumentation
end