Permalink
Browse files

add Faraday::Builder warning

  • Loading branch information...
1 parent c17a3c6 commit cc27ff9fb43147c60cf5eccde9ce67abb81468ae @technoweenie committed Dec 30, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/faraday.rb
View
@@ -218,6 +218,15 @@ def load_middleware(key)
end
end
+ def self.const_missing(name)
+ if name.to_sym == :Builder
+ warn "Faraday::Builder is now Faraday::RackBuilder."
+ const_set name, RackBuilder
+ else
+ super
+ end
+ end
+
require_libs "utils", "options", "connection", "rack_builder", "parameters",
"middleware", "adapter", "request", "response", "upload_io", "error"
end

0 comments on commit cc27ff9

Please sign in to comment.