Module: ROM::Files::Plugins::Relation::Instrumentation Private

Defined in:
lib/rom/files/plugins/relation/instrumentation.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/rom/files/plugins/relation/instrumentation.rb', line 11

def self.included(klass)
  super

  klass.class_eval do
    include ROM::Plugins::Relation::Instrumentation

    # @api private
    # @param [ROM::Files::Relation] relation
    def notification_payload(relation)
      super.merge(**relation.dataset.options)
    end
  end
end