lib/jetty_rails/adapters/rails_adapter.rb in jetty-rails-0.5 vs lib/jetty_rails/adapters/rails_adapter.rb in jetty-rails-0.6

- old
+ new

@@ -1,22 +1,16 @@ module JettyRails module Adapters - class RailsAdapter - attr_reader :config - - def initialize(config) - @config = config - end - + class RailsAdapter < AbstractAdapter + def init_params # please refer to goldspike and jruby-rack documentation + # in: PoolingRackApplicationFactory @rails_params ||= { 'rails.root' => '/', - 'public.root' => '/public', - 'rails.env' => config[:environment], - 'gem.path' => ENV['GEM_PATH'] || 'tmp/war/WEB-INF/gems' - } + 'rails.env' => config[:environment] + }.merge(base_init_params) end def event_listeners [ Rack::RailsServletContextListener.new ] end \ No newline at end of file