From 0495ac1bc5611da035a149b0e5cc6622527850ae Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Fri, 5 Aug 2016 21:26:11 -0400 Subject: [PATCH] Update payment.rb --- app/models/payment.rb | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/app/models/payment.rb b/app/models/payment.rb index d886c7f..c9525ec 100644 --- a/app/models/payment.rb +++ b/app/models/payment.rb @@ -17,26 +17,6 @@ class Payment validates_presence_of :customer_id, :account_id, :payment_method_id, :total_amount validates :total_amount, numericality: true - #Required dependency for ActiveModel::Errors - extend ActiveModel::Naming - - 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