Sha256: 0f0fd6ec9e5c802a8031420299d0d76de242d6d98a7536941f8f474de94f6298
Contents?: true
Size: 779 Bytes
Versions: 1
Compression:
Stored size: 779 Bytes
Contents
require 'rails/railtie' require 'active_support' require 'action_view/log_subscriber' require 'action_controller/log_subscriber' require 'active_record/log_subscriber' require 'action_mailer/log_subscriber' module Kenny # Tie to Rails application to access Rails.application.config class Railtie < Rails::Railtie config.kenny = Kenny.configs config.after_initialize do |app| Kenny.application = app # Define anonymous classes that inherit from ActiveSupport::LogSubscriber. # Within that anonymous class, define methods that # perform the user-defined actions when that instrumentation occurs. # If desired, user can define a specific logger for the specified instrumentation. Kenny.attach_to_instrumentations end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kenny-0.1.5 | lib/kenny/railtie.rb |