Restore brand_name method to Account model (fork-specific, removed during upstream sync)

pull/687/head
Wabo 3 weeks ago
parent 727a25e22d
commit ae16a0a0bf

@ -61,6 +61,10 @@ class Account < ApplicationRecord
linked_account_account&.testing? linked_account_account&.testing?
end end
def brand_name
account_configs.find_by(key: AccountConfig::BRAND_NAME_KEY)&.value.to_s.strip.presence
end
def tz_info def tz_info
@tz_info ||= TZInfo::Timezone.get(ActiveSupport::TimeZone::MAPPING[timezone] || timezone) @tz_info ||= TZInfo::Timezone.get(ActiveSupport::TimeZone::MAPPING[timezone] || timezone)
end end

Loading…
Cancel
Save