lib/magento/order.rb in magentor-0.2.13 vs lib/magento/order.rb in magentor-0.2.14
- old
+ new
@@ -95,10 +95,10 @@
def find(find_type, options = {})
filters = {}
options.each_pair { |k, v| filters[k] = {:eq => v} }
results = list(filters)
- raise ApiError "100 -> Requested order not exists." if results.blank?
+ raise Magento::ApiError "100 -> Requested order not exists." if results.blank?
if find_type == :first
info(results.first.increment_id)
else
results.collect do |o|
\ No newline at end of file