Sha256: 18a15f0cb46a8074783b036f14c0c91c120e678f0964110a33ef1355b9a9c368

Contents?: true

Size: 498 Bytes

Versions: 9

Compression:

Stored size: 498 Bytes

Contents

module JettyRails
  module Adapters
    
    class RailsAdapter < AbstractAdapter
            
      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
      
      def event_listeners
        [ Rack::RailsServletContextListener.new ]
      end
      
    end
    
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
mikewadhera-jetty-rails-0.9.1 lib/jetty_rails/adapters/rails_adapter.rb
mikewadhera-jetty-rails-0.9.2 lib/jetty_rails/adapters/rails_adapter.rb
mikewadhera-jetty-rails-0.9.3 lib/jetty_rails/adapters/rails_adapter.rb
mikewadhera-jetty-rails-0.9 lib/jetty_rails/adapters/rails_adapter.rb
nolman-jetty-rails-0.9.6-jruby lib/jetty_rails/adapters/rails_adapter.rb
jetty-rails-0.8.1 lib/jetty_rails/adapters/rails_adapter.rb
jetty-rails-0.6 lib/jetty_rails/adapters/rails_adapter.rb
jetty-rails-0.8 lib/jetty_rails/adapters/rails_adapter.rb
jetty-rails-0.7 lib/jetty_rails/adapters/rails_adapter.rb