2017-07-12 10:24:04 +09: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-08-01 01:59:34 +09:00
|
|
|
:site_short_description,
|
|
|
|
:site_short_description=,
|
2017-07-12 10:24:04 +09:00
|
|
|
:site_description,
|
|
|
|
:site_description=,
|
|
|
|
:site_extended_description,
|
|
|
|
:site_extended_description=,
|
|
|
|
:site_terms,
|
|
|
|
:site_terms=,
|
2019-03-14 13:28:30 +09:00
|
|
|
:registrations_mode,
|
|
|
|
:registrations_mode=,
|
2017-07-12 10:24:04 +09:00
|
|
|
:closed_registrations_message,
|
|
|
|
:closed_registrations_message=,
|
|
|
|
:open_deletion,
|
|
|
|
:open_deletion=,
|
|
|
|
:timeline_preview,
|
|
|
|
:timeline_preview=,
|
2017-11-19 12:13:57 +09:00
|
|
|
:show_staff_badge,
|
|
|
|
:show_staff_badge=,
|
2017-09-10 16:58:38 +09:00
|
|
|
:bootstrap_timeline_accounts,
|
|
|
|
:bootstrap_timeline_accounts=,
|
2018-08-23 21:17:35 +09:00
|
|
|
:theme,
|
|
|
|
:theme=,
|
2017-11-28 00:07:59 +09:00
|
|
|
:min_invite_role,
|
|
|
|
:min_invite_role=,
|
2017-12-30 03:52:04 +09:00
|
|
|
:activity_api_enabled,
|
|
|
|
:activity_api_enabled=,
|
|
|
|
:peers_api_enabled,
|
|
|
|
:peers_api_enabled=,
|
2018-02-04 14:00:10 +09:00
|
|
|
:show_known_fediverse_at_about_page,
|
|
|
|
:show_known_fediverse_at_about_page=,
|
2018-07-06 09:15:56 +09:00
|
|
|
:preview_sensitive_media,
|
|
|
|
:preview_sensitive_media=,
|
2018-08-24 11:33:27 +09:00
|
|
|
:custom_css,
|
|
|
|
:custom_css=,
|
2018-12-12 03:18:29 +09:00
|
|
|
:profile_directory,
|
|
|
|
:profile_directory=,
|
2017-07-12 10:24:04 +09:00
|
|
|
to: Setting
|
|
|
|
)
|
|
|
|
end
|