lib/pagarme/errors.rb in pagarme-2.1.2 vs lib/pagarme/errors.rb in pagarme-2.1.3
- old
+ new
@@ -36,10 +36,10 @@
def initialize(response)
@response = response
@errors = response['errors'].map do |error|
params = error.values_at('message', 'parameter_name', 'type', 'url')
- ParamError.new *params
+ ParamError.new(*params)
end
super @errors.map(&:message).join(', ')
end
end