Displaying 2 results from an estimated 2 matches for "oldrail".
Did you mean:
oldmail
2009 Mar 23
0
OldRails Rack handler added to Unicorn
Hi all,
I''ve committed support to Unicorn for old versions of Rails that didn''t
support Rack. I think it could be useful for Mongrel 2 (or any other
server) as well:
http://git.bogomips.org/cgit/unicorn.git/commit/?id=0b095ea72 [1]
or just fetch/clone git://git.bogomips.org/unicorn.git
The bin/unicorn_rails code is itself a mess, but cleaning it up is on my
ever growing
2010 Jun 04
8
unicorn_rails cleanup (possible fix for Rails3) pushed
...gt;=2.3 requires it
- old_rails = case ::Rails::VERSION::MAJOR
- when 0, 1 then true
- when 2 then Rails::VERSION::MINOR < 3 ? true : false
- else
- false
- end
-
- if old_rails
- require ''unicorn/app/old_rails''
- Unicorn::App::OldRails.new
- else
- ActionController::Dispatcher.new
- end
- when /\.ru$/
- raw = File.read(ru)
- raw.sub!(/^__END__\n.*/, '''')
- eval("Rack::Builder.new {(#{raw}\n)}.to_app", TOPLEVEL_BINDING, ru)
+ defined?(::Rails::VERSION::STRING) or
+...