Permalink
Browse files

remove autoloading from Faraday

  • Loading branch information...
1 parent 412844a commit 1e5284c5adbe07561a44d2119e6415eb3390701f @technoweenie committed Oct 20, 2012
Showing with 2 additions and 13 deletions.
  1. +2 −11 lib/faraday.rb
  2. +0 −2 lib/faraday/connection.rb
View
@@ -240,19 +240,10 @@ def self.register_middleware(type, mapping = nil)
component.register_middleware(mapping)
end
- autoload_all "faraday",
- :Middleware => 'middleware',
- :Builder => 'builder',
- :Request => 'request',
- :Response => 'response',
- :CompositeReadIO => 'upload_io',
- :UploadIO => 'upload_io',
- :Parts => 'upload_io'
-
- require_libs "utils", "connection", "adapter", "error"
+ require_libs "utils", "connection", "builder", "parameters", "middleware",
+ "adapter", "request", "response", "upload_io", "error"
end
-
# not pulling in active-support JUST for this method. And I love this method.
class Object
# The primary purpose of this method is to "tap into" a method chain,
@@ -3,8 +3,6 @@
require 'forwardable'
require 'uri'
-Faraday.require_libs 'builder', 'request', 'response', 'utils', 'parameters'
-
module Faraday
# Public: Connection objects manage the default properties and the middleware
# stack for fulfilling an HTTP request.

0 comments on commit 1e5284c

Please sign in to comment.