lib/recurly/resource.rb in recurly-2.8.0 vs lib/recurly/resource.rb in recurly-2.8.1
- old
+ new
@@ -334,12 +334,11 @@
def find(uuid, options = {})
if uuid.nil? || uuid.to_s.empty?
raise NotFound, "can't find a record with nil identifier"
end
- uri = uuid =~ /^http/ ? uuid : member_path(uuid)
begin
- from_response API.get(uri, {}, options)
+ from_response API.get(member_path(uuid), {}, options)
rescue API::NotFound => e
raise NotFound, e.description
end
end