Update payment.rb

This commit is contained in:
2016-08-05 21:24:49 -04:00
committed by GitHub
parent 5d4c49c85d
commit 08b365e69e

View File

@@ -23,6 +23,19 @@ class Payment
def initialize
@errors = ActiveModel::Errors.new(self)
end
# The following methods are needed to be minimally implemented
def read_attribute_for_validation(attr)
send(attr)
end
def self.human_attribute_name(attr, options = {})
attr
end
def self.lookup_ancestors
[self]
end
def save
payment = Quickbooks::Model::Payment.new