Sha256: e91440a7121410bdb746f512e61b3ee68329573cdb2c9c6e28fedda3d8e595dc

Contents?: true

Size: 274 Bytes

Versions: 9

Compression:

Stored size: 274 Bytes

Contents

events = %w(serializable_hash associations)

events.each do |name|
  ActiveSupport::Notifications.subscribe %r{^#{name}.*\.serializer$} do |*args|
    event = ActiveSupport::Notifications::Event.new(*args)
    gauge = Harness::Gauge.from_event event
    gauge.log
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
harness-0.9.1 lib/harness/integration/active_model_serializers.rb
harness-0.9.0 lib/harness/integration/active_model_serializers.rb
harness-0.8.1 lib/harness/integration/active_model_serializers.rb
harness-0.8.0 lib/harness/integration/active_model_serializers.rb
harness-0.7.0 lib/harness/integration/active_model_serializers.rb
harness-0.6.0 lib/harness/integration/active_model_serializers.rb
harness-0.5.0 lib/harness/integration/active_model_serializers.rb
harness-0.4.0 lib/harness/integration/active_model_serializers.rb
harness-0.3.0 lib/harness/integration/active_model_serializers.rb