diff --git a/app/models/qbo.rb b/app/models/qbo.rb index 5fb00cc..db9a069 100644 --- a/app/models/qbo.rb +++ b/app/models/qbo.rb @@ -51,4 +51,8 @@ class Qbo < ActiveRecord::Base qbo.last_sync = DateTime.now qbo.save end + + def self.last_sync + format_time(Qbo.first.last_sync) + end end