mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Merge 6a8e67038e
into 624c024766
This commit is contained in:
commit
94bfa48f0d
|
@ -142,6 +142,10 @@ class Form::AdminSettings
|
|||
end
|
||||
end
|
||||
|
||||
def persisted?
|
||||
true
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def cache_digest_value(key)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%h2= t('admin.settings.title')
|
||||
= render partial: 'admin/settings/shared/links'
|
||||
|
||||
= simple_form_for @admin_settings, url: admin_settings_about_path, html: { method: :patch } do |f|
|
||||
= simple_form_for @admin_settings, url: admin_settings_about_path do |f|
|
||||
= render 'shared/error_messages', object: @admin_settings
|
||||
|
||||
%p.lead= t('admin.settings.about.preamble')
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%h2= t('admin.settings.title')
|
||||
= render partial: 'admin/settings/shared/links'
|
||||
|
||||
= simple_form_for @admin_settings, url: admin_settings_appearance_path, html: { method: :patch } do |f|
|
||||
= simple_form_for @admin_settings, url: admin_settings_appearance_path do |f|
|
||||
= render 'shared/error_messages', object: @admin_settings
|
||||
|
||||
%p.lead= t('admin.settings.appearance.preamble')
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%h2= t('admin.settings.title')
|
||||
= render partial: 'admin/settings/shared/links'
|
||||
|
||||
= simple_form_for @admin_settings, url: admin_settings_branding_path, html: { method: :patch } do |f|
|
||||
= simple_form_for @admin_settings, url: admin_settings_branding_path do |f|
|
||||
= render 'shared/error_messages', object: @admin_settings
|
||||
|
||||
%p.lead= t('admin.settings.branding.preamble')
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%h2= t('admin.settings.title')
|
||||
= render partial: 'admin/settings/shared/links'
|
||||
|
||||
= simple_form_for @admin_settings, url: admin_settings_content_retention_path, html: { method: :patch } do |f|
|
||||
= simple_form_for @admin_settings, url: admin_settings_content_retention_path do |f|
|
||||
= render 'shared/error_messages', object: @admin_settings
|
||||
|
||||
%p.lead= t('admin.settings.content_retention.preamble')
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%h2= t('admin.settings.title')
|
||||
= render partial: 'admin/settings/shared/links'
|
||||
|
||||
= simple_form_for @admin_settings, url: admin_settings_discovery_path, html: { method: :patch } do |f|
|
||||
= simple_form_for @admin_settings, url: admin_settings_discovery_path do |f|
|
||||
= render 'shared/error_messages', object: @admin_settings
|
||||
|
||||
%p.lead= t('admin.settings.discovery.preamble')
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
%h2= t('admin.settings.title')
|
||||
= render partial: 'admin/settings/shared/links'
|
||||
|
||||
= simple_form_for @admin_settings, url: admin_settings_registrations_path, html: { method: :patch } do |f|
|
||||
= simple_form_for @admin_settings, url: admin_settings_registrations_path do |f|
|
||||
= render 'shared/error_messages', object: @admin_settings
|
||||
|
||||
%p.lead= t('admin.settings.registrations.preamble')
|
||||
|
|
|
@ -53,4 +53,8 @@ RSpec.describe Form::AdminSettings do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '#persisted?' do
|
||||
it { is_expected.to be_persisted }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user