Updated how settings are handled.

Note: Breaking change. Will need to update settings after update
This commit is contained in:
2026-03-21 10:25:46 -04:00
parent eacdecd65b
commit 7149e85d37
5 changed files with 29 additions and 10 deletions

View File

@@ -30,4 +30,26 @@ module RedmineQbo
RedmineQbo::Hooks::UsersShowHookListener
RedmineQbo::Hooks::ViewHookListener
end
def self.settings
Setting.plugin_redmine_qbo
end
def self.oauth_consumer_key
settings[:oauth_consumer_key]
end
def self.oauth_consumer_secret
settings[:oauth_consumer_secret]
end
def self.sandbox_mode?
settings[:sandbox] ? true : false
end
def self.webhook_token_secret
settings[:webhook_token]
end
end