mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
add tz info
This commit is contained in:
1 parent
3e929758fb
commit
bf2ebb995b
1 file changed
+4
@@ -60,6 +60,10 @@ class Account < ApplicationRecord
|
||||
linked_account_account&.testing?
|
||||
end
|
||||
|
||||
def tz_info
|
||||
@tz_info ||= TZInfo::Timezone.get(ActiveSupport::TimeZone::MAPPING[timezone] || timezone)
|
||||
end
|
||||
|
||||
def default_template_folder
|
||||
super || build_default_template_folder(name: TemplateFolder::DEFAULT_NAME,
|
||||
author_id: users.minimum(:id)).tap(&:save!)
|
||||
|
||||
Reference in new issue
Block a user