lib/httpx/registry.rb in httpx-0.11.3 vs lib/httpx/registry.rb in httpx-0.12.0
- old
+ new
@@ -60,16 +60,10 @@
return @registry if tag.nil?
handler = @registry.fetch(tag)
raise(Error, "#{tag} is not registered in #{self}") unless handler
- case handler
- when Symbol, String
- obj = const_get(handler)
- @registry[tag] = obj
- else
- handler
- end
+ handler
end
# @param [Object] tag the identifier for the handler in the registry
# @return [Symbol, String, Object] the handler (if Symbol or String, it is
# assumed to be an autoloaded module, to be loaded later)