mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
Domain statuses improvements
This commit is contained in:
parent
f43662e8b0
commit
e20944151e
10 changed files with 54 additions and 10 deletions
|
@ -3,6 +3,8 @@ class SettingGroup < ActiveRecord::Base
|
|||
|
||||
accepts_nested_attributes_for :settings
|
||||
|
||||
validates :code, uniqueness: true
|
||||
|
||||
def setting(key)
|
||||
settings.find_by(code: key.to_s)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue