Sha256: 7da2bee3c75ed9a8071e65a6601b3d75acdfd9b8450683e3b162eb7ee3d867ab
Contents?: true
Size: 767 Bytes
Versions: 6
Compression:
Stored size: 767 Bytes
Contents
require 'active_support/notifications' module Librato module Rails # defines basic context that all librato-rails subscribers will run in module Subscribers # make collector object directly available, it won't be changing def self.collector @collector ||= Librato.tracker.collector end def self.watch_controller_action(controller, action) @watches ||= [] watch = if action == :all "#{controller}".freeze else "#{controller}##{action}".freeze end @watches << watch end def self.inherit_watches(base, descendant) @watches ||= [] @watches << descendant.freeze if @watches.include?(base) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems