Sha256: 5089d91c3a358754786ca2b6a0f0b2eeaad38b92d9f3f753de305c184c7f5550

Contents?: true

Size: 268 Bytes

Versions: 21

Compression:

Stored size: 268 Bytes

Contents

events = %w(render_template render_partial)

events.each do |name|
  ActiveSupport::Notifications.subscribe "#{name}.action_view" do |*args|
    event = ActiveSupport::Notifications::Event.new(*args)
    gauge = Harness::Gauge.from_event event
    gauge.log
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
harness-0.9.1 lib/harness/integration/action_view.rb
harness-0.9.0 lib/harness/integration/action_view.rb
harness-0.8.1 lib/harness/integration/action_view.rb
harness-0.8.0 lib/harness/integration/action_view.rb
harness-0.7.0 lib/harness/integration/action_view.rb
harness-0.6.0 lib/harness/integration/action_view.rb
harness-0.5.0 lib/harness/integration/action_view.rb
harness-0.4.0 lib/harness/integration/action_view.rb
harness-0.3.0 lib/harness/integration/action_view.rb
harness-0.2.16 lib/harness/integration/action_view.rb
harness-0.2.15 lib/harness/integration/action_view.rb
harness-0.2.14 lib/harness/integration/action_view.rb
harness-0.2.13 lib/harness/integration/action_view.rb
harness-0.2.12 lib/harness/integration/action_view.rb
harness-0.2.11 lib/harness/integration/action_view.rb
harness-0.2.10 lib/harness/integration/action_view.rb
harness-0.2.9 lib/harness/integration/action_view.rb
harness-0.2.8 lib/harness/integration/action_view.rb
harness-0.2.7 lib/harness/integration/action_view.rb
harness-0.2.6 lib/harness/integration/action_view.rb