lib/hyper_resource.rb in hyperresource-0.9.1 vs lib/hyper_resource.rb in hyperresource-0.9.2

- old
+ new

@@ -104,10 +104,10 @@ ## and :body. Either :link or (:resource and :href and :url) are required. # @private def self.new_from(args) link = args[:link] resource = args[:resource] || link.resource - href = args[:href] || link.href + href = args[:href] || link.href rescue nil url = args[:url] || URI.join(resource.root, href || '') response = args[:response] body = args[:body] || {} old_rsrc = resource