Plus some specs. This should it make later possible to make Zero work with Ruby 1.8. But at the moment it only routes to the original decode_www_form method, if it exists. Otherwise it returns an empty Array. So this will still fail on the 1.8 versions at the moment.
13 lines
224 B
Ruby
13 lines
224 B
Ruby
if RUBY_VERSION <= '1.9'
|
|
require 'backports'
|
|
end
|
|
require 'zero/patches/uri'
|
|
|
|
module Zero
|
|
require 'zero/controller'
|
|
require 'zero/router'
|
|
require 'zero/renderer'
|
|
require 'zero/request'
|
|
require 'zero/response'
|
|
end
|