From ae16a0a0bfb41f23b14e4d706c712ede57d654c9 Mon Sep 17 00:00:00 2001 From: Wabo Date: Mon, 1 Jun 2026 14:00:40 -0400 Subject: [PATCH] Restore brand_name method to Account model (fork-specific, removed during upstream sync) --- app/models/account.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/account.rb b/app/models/account.rb index d3d53d0c..b59086b0 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -61,6 +61,10 @@ class Account < ApplicationRecord linked_account_account&.testing? end + def brand_name + account_configs.find_by(key: AccountConfig::BRAND_NAME_KEY)&.value.to_s.strip.presence + end + def tz_info @tz_info ||= TZInfo::Timezone.get(ActiveSupport::TimeZone::MAPPING[timezone] || timezone) end