Sha256: ca9fd30e6543d8408254f7fedd929573cc0aba99b38dd540ce23a22360b6cbcd
Contents?: true
Size: 946 Bytes
Versions: 2
Compression:
Stored size: 946 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, ENV.fetch('APPSIGNAL_APP_ENV', Rails.env), :name => Rails.application.class.parent_name ) Appsignal.start end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appsignal-0.11.8.beta.2 | lib/appsignal/integrations/rails.rb |
appsignal-0.11.8.beta.1 | lib/appsignal/integrations/rails.rb |