2017-07-11 21:24:04 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Form::AdminSettings
|
|
|
|
include ActiveModel::Model
|
|
|
|
|
|
|
|
delegate(
|
|
|
|
:site_contact_username,
|
|
|
|
:site_contact_username=,
|
|
|
|
:site_contact_email,
|
|
|
|
:site_contact_email=,
|
|
|
|
:site_title,
|
|
|
|
:site_title=,
|
2018-07-31 12:59:34 -04:00
|
|
|
:site_short_description,
|
|
|
|
:site_short_description=,
|
2017-07-11 21:24:04 -04:00
|
|
|
:site_description,
|
|
|
|
:site_description=,
|
|
|
|
:site_extended_description,
|
|
|
|
:site_extended_description=,
|
|
|
|
:site_terms,
|
|
|
|
:site_terms=,
|
|
|
|
:open_registrations,
|
|
|
|
:open_registrations=,
|
|
|
|
:closed_registrations_message,
|
|
|
|
:closed_registrations_message=,
|
|
|
|
:open_deletion,
|
|
|
|
:open_deletion=,
|
|
|
|
:timeline_preview,
|
|
|
|
:timeline_preview=,
|
2017-11-18 22:13:57 -05:00
|
|
|
:show_staff_badge,
|
|
|
|
:show_staff_badge=,
|
2017-09-10 03:58:38 -04:00
|
|
|
:bootstrap_timeline_accounts,
|
|
|
|
:bootstrap_timeline_accounts=,
|
2018-08-23 08:17:35 -04:00
|
|
|
:theme,
|
|
|
|
:theme=,
|
2017-11-27 10:07:59 -05:00
|
|
|
:min_invite_role,
|
|
|
|
:min_invite_role=,
|
2017-12-29 13:52:04 -05:00
|
|
|
:activity_api_enabled,
|
|
|
|
:activity_api_enabled=,
|
|
|
|
:peers_api_enabled,
|
|
|
|
:peers_api_enabled=,
|
2018-02-04 00:00:10 -05:00
|
|
|
:show_known_fediverse_at_about_page,
|
|
|
|
:show_known_fediverse_at_about_page=,
|
2018-07-05 20:15:56 -04:00
|
|
|
:preview_sensitive_media,
|
|
|
|
:preview_sensitive_media=,
|
2017-07-11 21:24:04 -04:00
|
|
|
to: Setting
|
|
|
|
)
|
|
|
|
end
|