lib/economic/proxies/actions/find_by_number.rb in rconomic-0.5.1 vs lib/economic/proxies/actions/find_by_number.rb in rconomic-0.5.2

- old
+ new

@@ -3,10 +3,10 @@ def find_by_number(number) response = request('FindByNumber', { 'number' => number }) - if response == {} + if response.empty? nil else entity = build entity.partial = true entity.persisted = true