Permalink
Browse files

Autoloads, requires, and using new api

  • Loading branch information...
1 parent 51fc864 commit 297f6382f7e0a099681a066f9aaeb56bfeb5e653 @raggi raggi committed May 3, 2011
Showing with 5 additions and 3 deletions.
  1. +1 −0 lib/rack.rb
  2. +0 −2 lib/rack/multipart.rb
  3. +2 −0 lib/rack/multipart/parser.rb
  4. +1 −1 lib/rack/request.rb
  5. +1 −0 lib/rack/utils.rb
View
@@ -54,6 +54,7 @@ def self.release
autoload :Static, "rack/static"
autoload :URLMap, "rack/urlmap"
autoload :Utils, "rack/utils"
+ autoload :Multipart, "rack/multipart"
autoload :MockRequest, "rack/mock"
autoload :MockResponse, "rack/mock"
@@ -1,5 +1,3 @@
-require 'rack/utils'
-
module Rack
# A multipart form data parser, adapted from IOWA.
#
@@ -1,3 +1,5 @@
+require 'rack/utils'
+
module Rack
module Multipart
class Parser
View
@@ -303,7 +303,7 @@ def parse_query(qs)
end
def parse_multipart(env)
- Utils::Multipart.parse_multipart(env)
+ Rack::Multipart.parse_multipart(env)
end
end
end
View
@@ -3,6 +3,7 @@
require 'fileutils'
require 'set'
require 'tempfile'
+
require 'rack/multipart'
if RUBY_VERSION[/^\d+\.\d+/] == '1.8'

0 comments on commit 297f638

Please sign in to comment.