From 47f6a0fa7958070084dd183fc0f3688cf145c7b5 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 2 May 2016 12:18:47 -0400 Subject: [PATCH] Update qbo.rb --- app/models/qbo.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/models/qbo.rb b/app/models/qbo.rb index 4589345..b236f8f 100644 --- a/app/models/qbo.rb +++ b/app/models/qbo.rb @@ -40,4 +40,10 @@ class Qbo < ActiveRecord::Base def self.get_account first end + + # Updates last sync time stamp + def self.update_time_stamp + first.last_sync = DateTime.now + first.save + end end