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.

41 lines
971 B

  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_description,
  12. :site_description=,
  13. :site_extended_description,
  14. :site_extended_description=,
  15. :site_terms,
  16. :site_terms=,
  17. :open_registrations,
  18. :open_registrations=,
  19. :closed_registrations_message,
  20. :closed_registrations_message=,
  21. :open_deletion,
  22. :open_deletion=,
  23. :timeline_preview,
  24. :timeline_preview=,
  25. :show_staff_badge,
  26. :show_staff_badge=,
  27. :bootstrap_timeline_accounts,
  28. :bootstrap_timeline_accounts=,
  29. :min_invite_role,
  30. :min_invite_role=,
  31. :activity_api_enabled,
  32. :activity_api_enabled=,
  33. :peers_api_enabled,
  34. :peers_api_enabled=,
  35. :show_known_fediverse_at_about_page,
  36. :show_known_fediverse_at_about_page=,
  37. to: Setting
  38. )
  39. end