Migrate from ledermann/rails-settings to rails-settings-cached which allows global settings
with YAML-defined defaults. Add admin page for editing global settings. Add "site_description" setting that would show as a paragraph on the frontpage
This commit is contained in:
parent
babc6a1528
commit
b11fdc3ae3
20 changed files with 188 additions and 34 deletions
23
config/settings.yml
Normal file
23
config/settings.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
# config/app.yml for rails-settings-cached
|
||||
defaults: &defaults
|
||||
site_description: ''
|
||||
site_contact_username: ''
|
||||
site_contact_email: ''
|
||||
notification_emails:
|
||||
follow: false
|
||||
reblog: false
|
||||
favourite: false
|
||||
mention: false
|
||||
follow_request: true
|
||||
interactions:
|
||||
must_be_follower: false
|
||||
must_be_following: false
|
||||
|
||||
development:
|
||||
<<: *defaults
|
||||
|
||||
test:
|
||||
<<: *defaults
|
||||
|
||||
production:
|
||||
<<: *defaults
|
Loading…
Add table
Add a link
Reference in a new issue