mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
raise exceptions if not initialized properly
This commit is contained in:
@@ -13,6 +13,7 @@ class SyncServiceBase
|
|||||||
|
|
||||||
# Subclasses should initialize with a QBO client instance
|
# Subclasses should initialize with a QBO client instance
|
||||||
def initialize(qbo:)
|
def initialize(qbo:)
|
||||||
|
raise "No QBO configuration found" unless qbo
|
||||||
@qbo = qbo
|
@qbo = qbo
|
||||||
@entity = self.class.model_class
|
@entity = self.class.model_class
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user