Sha256: 5ab3d2d0e4dc32fe265aef57a23359d446c3e27f0a6e135b7c439ee2042943be

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

module BetterErrors
  class Railtie < Rails::Railtie
    initializer "better_errors.configure_rails_initialization" do
      unless Rails.env.production?
        Rails.application.middleware.use BetterErrors::Middleware
        BetterErrors.logger = Rails.logger
        BetterErrors.application_root = Rails.root.to_s
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
better_errors-0.2.0 lib/better_errors/rails.rb
better_errors-0.1.1 lib/better_errors/rails.rb
better_errors-0.1.0 lib/better_errors/rails.rb
better_errors-0.0.8 lib/better_errors/rails.rb