Method: Rack::Adapter::Rails#initialize
- Defined in:
- lib/rack/adapter/rails.rb
#initialize(options = {}) ⇒ Rails
Returns a new instance of Rails.
18 19 20 21 22 23 24 25 26 |
# File 'lib/rack/adapter/rails.rb', line 18 def initialize(={}) @root = [:root] || Dir.pwd @env = [:environment] || 'development' @prefix = [:prefix] load_application @file_server = Rack::File.new(::File.join(RAILS_ROOT, "public")) end |