Sha256: 80475b1b8ea91432f362db8a90d90cce1df5e07f543871d630bcd33b7a3f5690

Contents?: true

Size: 381 Bytes

Versions: 5

Compression:

Stored size: 381 Bytes

Contents

require "influxdb/rails/middleware/subscriber"

module InfluxDB
  module Rails
    module Middleware
      class ActionMailerSubscriber < Subscriber # :nodoc:
        private

        def values
          { value: 1 }
        end

        def tags
          {
            hook:   "deliver",
            mailer: payload[:mailer],
          }
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
influxdb-rails-1.0.3 lib/influxdb/rails/middleware/action_mailer_subscriber.rb
influxdb-rails-1.0.2 lib/influxdb/rails/middleware/action_mailer_subscriber.rb
influxdb-rails-1.0.1 lib/influxdb/rails/middleware/action_mailer_subscriber.rb
influxdb-rails-1.0.1.beta3 lib/influxdb/rails/middleware/action_mailer_subscriber.rb
influxdb-rails-1.0.1.beta2 lib/influxdb/rails/middleware/action_mailer_subscriber.rb