]> cat aescling's git repositories - mastodon.git/commit
Add ability to change an instance default theme from the administration panel (#7092...
authorJakub Mendyk <jakubmendyk.szkola+git@gmail.com>
Thu, 23 Aug 2018 12:17:35 +0000 (14:17 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 23 Aug 2018 12:17:35 +0000 (14:17 +0200)
commit6cb3514d64ec24b164484f4eb84363b96746d5d6
tree7de47dff8b187bb5921e7b7a331a9ef487a1cae5
parentd1c2c917d9685879d9c5cd203e416a8ef796f1e1
Add ability to change an instance default theme from the administration panel (#7092) (#8381)

* Add default_settings class method to ScopedSettings

ScopedSettings was extended to use value of unscoped setting instead of
only using defaults set in config/settings.yml for selected settings.
This adds possibility for admins to set default values of users' settings,
for example default theme (as requested in #7092).

* Add ability to change an instance default theme

Closes #7092
app/controllers/admin/settings_controller.rb
app/controllers/application_controller.rb
app/lib/settings/scoped_settings.rb
app/models/form/admin_settings.rb
app/views/admin/settings/edit.html.haml
spec/controllers/application_controller_spec.rb