Sha256: b7063e429eebc5c9dc7fb7fb89cc7c00a830f9939df2cc0dfd9ea3ed364da992
Contents?: true
Size: 594 Bytes
Versions: 15
Compression:
Stored size: 594 Bytes
Contents
module TreasureData module Logger module Agent::Rails module ControllerExtension def self.init ::ActionController::Base.send(:include, self) end if defined?(ActiveSupport::Concern) extend ActiveSupport::Concern else # Rails 2 def self.included(mod) im = InstanceMethods cm = ClassMethods mod.class_eval do include im extend cm end end end module InstanceMethods def event TreasureData::Logger.event end end module ClassMethods end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems