Sha256: b72da20ee5cc7c720b8524e072f1d770d4259ffe7209e18e5a29c2348e209d36

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

module Trinidad
  class RailsWebApp < WebApp

    def add_init_params
      super
      @context.addParameter('rails.env', environment.to_s) unless @context.findParameter('rails.env')
      @context.addParameter('rails.root', '/') unless @context.findParameter('rails.root')
    end

    def context_listener
      'org.jruby.rack.rails.RailsServletContextListener'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trinidad-0.7.1 lib/trinidad/rails_web_app.rb
trinidad-0.7.0 lib/trinidad/rails_web_app.rb