Class: Neetodeploy::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/neetodeploy/autoscale/railtie.rb

Instance Method Summary collapse

Instance Method Details

#insert_middlewareObject



9
10
11
# File 'lib/neetodeploy/autoscale/railtie.rb', line 9

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

#use_better_errors?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/neetodeploy/autoscale/railtie.rb', line 13

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