Module: TreasureData::Logger::Agent::Rails::ControllerExtension

Extended by:
ActiveSupport::Concern
Defined in:
lib/td/logger/agent/rails/controller.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(mod) ⇒ Object

Rails 2



14
15
16
17
18
19
20
21
# File 'lib/td/logger/agent/rails/controller.rb', line 14

def self.included(mod)
  im = InstanceMethods
  cm = ClassMethods
  mod.class_eval do
    include im
    extend cm
  end
end

.initObject



6
7
8
# File 'lib/td/logger/agent/rails/controller.rb', line 6

def self.init
  ::ActionController::Base.send(:include, self)
end