Sha256: 3748ce3cee82a2453d40e7308645c893ee47c1ed878f3b1d182b696ca6038096
Contents?: true
Size: 1001 Bytes
Versions: 2
Compression:
Stored size: 1001 Bytes
Contents
# ne zaboraviti u config/production.rb postaviti config.precompiled_assets ili tako nesto na true module JRubyCipango module Factory ['org.jruby.rack.DefaultRackApplicationFactory', 'org.jruby.rack.SharedRackApplicationFactory', 'org.jruby.rack.RackServletContextListener', 'org.jruby.rack.rails.RailsServletContextListener', 'org.jruby.Ruby' ].each {|c| java_import c } class JRCRackFactory < DefaultRackApplicationFactory field_accessor :rackContext def newRuntime runtime = Ruby.get_global_runtime $servlet_context=rackContext require 'rack/handler/servlet' return runtime end end class JRCRackListener < RackServletContextListener field_reader :factory def newApplicationFactory(context) if factory return factory else return ( SharedRackApplicationFactory.new(JRCRackFactory.new) ) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jrubycipango-0.2.0 | lib/jrubycipango/factory.rb |
jrubycipango-0.1.2 | lib/jrubycipango/factory.rb |