Method: Rack::Adapter::Rails#load_application

Defined in:
lib/rack/adapter/rails.rb

#load_applicationObject



28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/rack/adapter/rails.rb', line 28

def load_application
  ENV['RAILS_ENV'] = @env

  require "#{@root}/config/environment"
  require 'dispatcher'
  
  if @prefix
    if ActionController::Base.respond_to?('relative_url_root=')
      ActionController::Base.relative_url_root = @prefix # Rails 2.1.1
    else
      ActionController::AbstractRequest.relative_url_root = @prefix
    end
  end
end