Sha256: 068f18be5088d23d13a621fe71ce01ce41df84a2ca41ba496f3d8ec4970043da
Contents?: true
Size: 960 Bytes
Versions: 3
Compression:
Stored size: 960 Bytes
Contents
class Raygun::Railtie < Rails::Railtie initializer "raygun.configure_rails_initialization" do |app| # Thanks Airbrake: See https://github.com/rails/rails/pull/8624 middleware = if defined?(ActionDispatch::DebugExceptions) # Rails >= 3.2.0 "ActionDispatch::DebugExceptions" else # Rails < 3.2.0 "ActionDispatch::ShowExceptions" end app.config.middleware.insert_after middleware, "Raygun::Middleware::RackExceptionInterceptor" # Affected User tracking require "raygun/middleware/rails_insert_affected_user" app.config.middleware.insert_after Raygun::Middleware::RackExceptionInterceptor, "Raygun::Middleware::RailsInsertAffectedUser" end config.to_prepare do Raygun.configuration.logger ||= Rails.logger Raygun.configuration.silence_reporting = !Rails.env.production? if Raygun.configuration.silence_reporting.nil? end rake_tasks do load "tasks/raygun.tasks" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
raygun4ruby-1.0.1 | lib/raygun/railtie.rb |
raygun4ruby-1.0.0 | lib/raygun/railtie.rb |
raygun4ruby-0.0.9 | lib/raygun/railtie.rb |