Sha256: 570e91d07be26ceaf44ea309112501a827bc8274d40cb602a91069b35b75d640
Contents?: true
Size: 998 Bytes
Versions: 1
Compression:
Stored size: 998 Bytes
Contents
# Rails: ne zaboraviti u config/environments/production.rb postaviti config.assets.compile=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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jrubycipango-0.2.11 | lib/jrubycipango/factory.rb |