Sha256: c5a1bfbe93152f23601817cd188796a919edccacaf7daedfc4715503eeeee09a
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
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' => 'tmp/war/WEB-INF/gems' } end def rack_event_listener Rack::RailsServletContextListener.new end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jetty-rails-0.4 | lib/jetty_rails/adapters/rails_adapter.rb |