akkounts/app/models/concerns/settings/xmpp_settings.rb
Râu Cao 4ae10c9b53
All checks were successful
continuous-integration/drone/push Build is passing
Refactor settings model
Move the various sections to their own concerns, so they're easier to
find and maintain
2024-08-28 14:39:08 +02:00

12 lines
324 B
Ruby

module Settings
module XmppSettings
extend ActiveSupport::Concern
included do
field :xmpp_default_rooms, type: :array, default: []
field :xmpp_autojoin_default_rooms, type: :boolean, default: false
field :xmpp_notifications_from_address, type: :string, default: primary_domain
end
end
end