mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Fix empty hash issue #2962
This commit is contained in:
parent
d9c2b992d2
commit
b448313850
2 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,7 @@ class ReservedDomain < ActiveRecord::Base
|
|||
before_save :fill_empty_passwords
|
||||
|
||||
def fill_empty_passwords
|
||||
return unless names
|
||||
names.each { |k, v| names[k] = SecureRandom.hex if v.blank? }
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue