From 08b365e69e29551b424095b1172c4438d3428072 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 5 Aug 2016 21:24:49 -0400 Subject: [PATCH] Update payment.rb --- app/models/payment.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/models/payment.rb b/app/models/payment.rb index bdf6641..c62c8ae 100644 --- a/app/models/payment.rb +++ b/app/models/payment.rb @@ -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