mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Modify Settings UI to read values from SettingEntry model
This commit is contained in:
parent
4f59900367
commit
950bdc6256
4 changed files with 26 additions and 65 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue