Sha256: 93d4c5559292fa9a7616ce47021bc61f91f304f57bd75bc0d52dc3b68fe5c36d

Contents?: true

Size: 395 Bytes

Versions: 10

Compression:

Stored size: 395 Bytes

Contents

# frozen_string_literal: true

module Neetodeploy
  class Railtie < Rails::Railtie
    initializer "neetodeploy.configure_rails_initialization" do
      insert_middleware
    end

    def insert_middleware
      Rails.application.middleware.use Neetodeploy::Middleware
    end

    def use_better_errors?
      !Rails.env.production? and app.config.consider_all_requests_local
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
neetodeploy-autoscale-1.0.5 lib/neetodeploy/autoscale/railtie.rb
neetodeploy-autoscale-1.0.4 lib/neetodeploy/autoscale/railtie.rb
neetodeploy-autoscale-1.0.3 lib/neetodeploy/autoscale/railtie.rb
neetodeploy-autoscale-1.0.2 lib/neetodeploy/autoscale/railtie.rb
neetodeploy-autoscale-1.0.1 lib/neetodeploy/autoscale/railtie.rb
neetodeploy-autoscale-1.0.0 lib/neetodeploy/autoscale/railtie.rb
neetodeploy-autoscale-0.4.0 lib/neetodeploy/autoscale/railtie.rb
neetodeploy-autoscale-0.3.0 lib/neetodeploy/autoscale/railtie.rb
neetodeploy-autoscale-0.2.0 lib/neetodeploy/autoscale/railtie.rb
neetodeploy-autoscale-0.1.0 lib/neetodeploy/autoscale/railtie.rb