闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.2 KiB

  1. # frozen_string_literal: true
  2. class Form::AdminSettings
  3. include ActiveModel::Model
  4. delegate(
  5. :site_contact_username,
  6. :site_contact_username=,
  7. :site_contact_email,
  8. :site_contact_email=,
  9. :site_title,
  10. :site_title=,
  11. :site_short_description,
  12. :site_short_description=,
  13. :site_description,
  14. :site_description=,
  15. :site_extended_description,
  16. :site_extended_description=,
  17. :site_terms,
  18. :site_terms=,
  19. :open_registrations,
  20. :open_registrations=,
  21. :closed_registrations_message,
  22. :closed_registrations_message=,
  23. :open_deletion,
  24. :open_deletion=,
  25. :timeline_preview,
  26. :timeline_preview=,
  27. :show_staff_badge,
  28. :show_staff_badge=,
  29. :bootstrap_timeline_accounts,
  30. :bootstrap_timeline_accounts=,
  31. :theme,
  32. :theme=,
  33. :min_invite_role,
  34. :min_invite_role=,
  35. :activity_api_enabled,
  36. :activity_api_enabled=,
  37. :peers_api_enabled,
  38. :peers_api_enabled=,
  39. :show_known_fediverse_at_about_page,
  40. :show_known_fediverse_at_about_page=,
  41. :preview_sensitive_media,
  42. :preview_sensitive_media=,
  43. :custom_css,
  44. :custom_css=,
  45. :profile_directory,
  46. :profile_directory=,
  47. to: Setting
  48. )
  49. end