All checks were successful
continuous-integration/drone/push Build is passing
Move the various sections to their own concerns, so they're easier to find and maintain
25 lines
664 B
Ruby
25 lines
664 B
Ruby
module Settings
|
|
module BtcpaySettings
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
field :btcpay_api_url, type: :string,
|
|
default: ENV["BTCPAY_API_URL"].presence
|
|
|
|
field :btcpay_enabled, type: :boolean,
|
|
default: ENV["BTCPAY_API_URL"].present?
|
|
|
|
field :btcpay_public_url, type: :string,
|
|
default: ENV["BTCPAY_PUBLIC_URL"].presence
|
|
|
|
field :btcpay_store_id, type: :string,
|
|
default: ENV["BTCPAY_STORE_ID"].presence
|
|
|
|
field :btcpay_auth_token, type: :string,
|
|
default: ENV["BTCPAY_AUTH_TOKEN"].presence
|
|
|
|
field :btcpay_publish_wallet_balances, type: :boolean, default: true
|
|
end
|
|
end
|
|
end
|