module JettyRails module Adapters class RailsAdapter attr_reader :config def initialize(config) @config = config end def init_params # please refer to goldspike and jruby-rack documentation @rails_params ||= { 'rails.root' => '/', 'public.root' => '/public', 'rails.env' => config[:environment], 'gem.path' => ENV['GEM_PATH'] || 'tmp/war/WEB-INF/gems' } end def event_listeners [ Rack::RailsServletContextListener.new ] end end end end