Class: JettyRails::Adapters::RailsAdapter

Inherits:
AbstractAdapter show all
Defined in:
lib/jetty_rails/adapters/rails_adapter.rb

Instance Attribute Summary

Attributes inherited from AbstractAdapter

#config

Instance Method Summary collapse

Methods inherited from AbstractAdapter

#base_init_params, #initialize

Constructor Details

This class inherits a constructor from JettyRails::Adapters::AbstractAdapter

Instance Method Details

#event_listenersObject



15
16
17
# File 'lib/jetty_rails/adapters/rails_adapter.rb', line 15

def event_listeners
  [ Rack::RailsServletContextListener.new ]
end

#init_paramsObject



6
7
8
9
10
11
12
13
# File 'lib/jetty_rails/adapters/rails_adapter.rb', line 6

def init_params
  # please refer to goldspike and jruby-rack documentation
  # in: PoolingRackApplicationFactory 
  @rails_params ||= {
    'rails.root' => '/',
    'rails.env' => config[:environment]
  }.merge(base_init_params)
end