Sha256: 96b677d000ef524b6687ea5cce7f029c7ab504a823ee598b8af12c18a64a1b61
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
require 'airbrake' require 'rails' require 'airbrake/rails/middleware' module Airbrake class Railtie < ::Rails::Railtie rake_tasks do require 'airbrake/rake_handler' require 'airbrake/rails3_tasks' end initializer "airbrake.middleware" do |app| app.config.middleware.use "Airbrake::Rails::Middleware" app.config.middleware.insert 0, "Airbrake::UserInformer" end config.after_initialize do Airbrake.configure(true) do |config| config.logger ||= config.async? ? ::Logger.new(STDERR) : ::Rails.logger config.environment_name ||= ::Rails.env config.project_root ||= ::Rails.root config.framework = "Rails: #{::Rails::VERSION::STRING}" end ActiveSupport.on_load(:action_controller) do # Lazily load action_controller methods # require 'airbrake/rails/controller_methods' include Airbrake::Rails::ControllerMethods end if defined?(::ActionController::Base) require 'airbrake/rails/javascript_notifier' ::ActionController::Base.send(:include, Airbrake::Rails::JavascriptNotifier) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
airbrake-3.1.7 | lib/airbrake/railtie.rb |