lib/razorpay/request.rb in razorpay-1.0.1 vs lib/razorpay/request.rb in razorpay-1.0.2

- old
+ new

@@ -54,10 +54,10 @@ klass.new(response) end def raise_error(error, status) # Get the error class name, require it and instantiate an error - require "razorpay/#{error['code'].downcase}" + require "razorpay/errors/#{error['code'].downcase}" class_name = 'Razorpay::' + error['code'].split('_').map(&:capitalize).join('') args = [error['code'], status] args.push error['field'] if error.key?('field') klass = begin