lib/wp/api/endpoints.rb in wp-api-0.1.4 vs lib/wp/api/endpoints.rb in wp-api-0.1.5
- old
+ new
@@ -42,10 +42,10 @@
resource_class(res).new *get("#{res}/#{id}", query)
end
def resource_subpath(res, id, subpath, query = {})
query.merge(should_raise_on_empty: false)
- get("#{res}/#{id}/#{subpath}", query).first
+ get("#{res}/#{id}/#{subpath}", query)
end
def resource_named(res, slug)
resources(res, name: slug).first
end