Sha256: 9bcdd4e8580d6d03438b5a452a534d75bf5eff59d81ffb81b7195e7ef93da0f4

Contents?: true

Size: 346 Bytes

Versions: 8

Compression:

Stored size: 346 Bytes

Contents

module Librato
  module Rails
    module Helpers
      module Controller

        # Mark a specific controller action for more detailed instrumenting
        def instrument_action(*actions)
          actions.each do |action|
            Subscribers.watch_controller_action(self.to_s, action)
          end
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
librato-rails-1.3.0 lib/librato/rails/helpers/controller.rb
librato-rails-1.2.0 lib/librato/rails/helpers/controller.rb
librato-rails-1.1.0 lib/librato/rails/helpers/controller.rb
librato-rails-1.0.0 lib/librato/rails/helpers/controller.rb
librato-rails-0.12.0 lib/librato/rails/helpers/controller.rb
librato-rails-0.12.0.beta lib/librato/rails/helpers/controller.rb
librato-rails-0.11.1 lib/librato/rails/helpers/controller.rb
librato-rails-0.11.0 lib/librato/rails/helpers/controller.rb