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

@ -18,6 +18,10 @@ class SettingEntry < ApplicationRecord
send(method)
end
def self.with_group(group_name)
SettingEntry.where(group: group_name)
end
def self.groups
SettingEntry.all.pluck(:group).uniq
end