Modify Settings UI to read values from SettingEntry model

This commit is contained in:
Karl Erik Õunapuu 2020-08-11 12:29:13 +03:00
parent 4f59900367
commit 950bdc6256
4 changed files with 26 additions and 65 deletions

View file

@ -3,7 +3,12 @@ module Admin
load_and_authorize_resource
def index
@settings = Setting.unscoped
@settings = SettingEntry.unscoped
@validation_settings = SettingEntry.with_group('domain_validation')
@expiration_settings = SettingEntry.with_group('domain_expiration')
@other_settings = SettingEntry.with_group('other')
@billing_settings = SettingEntry.with_group('billing')
@contacts_settings = SettingEntry.with_group('contacts')
end
def create