mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Merge branch 'master' into dev
This commit is contained in:
commit
c4e1ece82c
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -27,8 +27,9 @@ class Qbo < ActiveRecord::Base
|
||||
# Returns the last sync time formatted for display. If no sync has occurred, returns a default message.
|
||||
def self.last_sync
|
||||
qbo = QboConnectionService.current!
|
||||
return I18n.t(:label_qbo_never_synced) unless qbo&.last_sync
|
||||
format_time(qbo.last_sync)
|
||||
rescue
|
||||
return I18n.t(:label_qbo_never_synced)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in new issue
Block a user