Sha256: dabc155b6fdddc85193bdec16a45da82a7e372fd8e079bb6af1c5d5a5520f737

Contents?: true

Size: 609 Bytes

Versions: 7

Compression:

Stored size: 609 Bytes

Contents

require 'hoptoad_notifier'
require 'rails'

module HoptoadNotifier
  class Railtie < Rails::Railtie
    rake_tasks do
      require "hoptoad_notifier/rails3_tasks"
    end

    initializer "hoptoad.use_rack_middleware" do |app|
      app.config.middleware.use "HoptoadNotifier::Rack"
    end

    config.after_initialize do
      HoptoadNotifier.configure(true) do |config|
        config.logger           = Rails.logger
        config.environment_name = Rails.env
        config.project_root     = Rails.root
        config.framework        = "Rails: #{::Rails::VERSION::STRING}"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
hoptoad_notifier-2.3.2 lib/hoptoad_notifier/railtie.rb
jordan-brough-hoptoad_notifier-2.3.0 lib/hoptoad_notifier/railtie.rb
hoptoad_notifier-2.3.0 lib/hoptoad_notifier/railtie.rb
hatless-hoptoad_notifier-2.2.6.1 lib/hoptoad_notifier/railtie.rb
hatless-hoptoad_notifier-2.2.6.001 lib/hoptoad_notifier/railtie.rb
hatless-hoptoad_notifier-2.2.6 lib/hoptoad_notifier/railtie.rb
hoptoad_notifier-2.2.6 lib/hoptoad_notifier/railtie.rb