lib/caseblocks_api/finder.rb in caseblocks_api-0.2.6 vs lib/caseblocks_api/finder.rb in caseblocks_api-0.2.8
- old
+ new
@@ -10,10 +10,10 @@
def execute_single(case_type, property_name, value)
@client.get("/case_blocks/#{case_type}", {query: {search: true, property: property_name, value: value}})
end
def execute_multiple(case_type, properties)
- @client.get("/case_blocks/#{case_type}", {query: {search: true, properties: properties}})
+ @client.post("/case_blocks/#{case_type}", :body => {search: true, properties: properties}.to_json)
end
end
class Client
def find_by_property(case_type, property_name, value)