Sha256: ed81b13b533ffbc1a598adac2a1acd95397e953dd2f44dea94a19a258649d088
Contents?: true
Size: 914 Bytes
Versions: 1
Compression:
Stored size: 914 Bytes
Contents
if defined?(::Rails) Appsignal.logger.info("Loading Rails (#{Rails.version}) integration") module Appsignal module Integrations class Railtie < ::Rails::Railtie initializer 'appsignal.configure_rails_initialization' do |app| app.middleware.insert_before( ActionDispatch::RemoteIp, Appsignal::Rack::JSExceptionCatcher ) app.middleware.insert_after( Appsignal::Rack::JSExceptionCatcher, 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 ) Appsignal.start end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appsignal-0.11.8.beta.0 | lib/appsignal/integrations/rails.rb |