Sha256: fa6c8a1a0c50386a23efe8f9a517dda5f64a9b3a28edc75816798480e14287c8
Contents?: true
Size: 826 Bytes
Versions: 22
Compression:
Stored size: 826 Bytes
Contents
if defined?(::Rails) Appsignal.logger.info('Loading Rails integration') module Appsignal module Integrations class Railtie < ::Rails::Railtie initializer 'appsignal.configure_rails_initialization' do |app| app.middleware.insert_before( ActionDispatch::RemoteIp, Appsignal::Rack::Listener ) end config.after_initialize do # Start logger Appsignal.start_logger(Rails.root.join('log')) # Load config Appsignal.config = Appsignal::Config.new( Rails.root, Rails.env, :name => Rails.application.class.parent_name ) # Start agent if config for this env is present Appsignal.start if Appsignal.active? end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems