mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
111396946-views_methods
This commit is contained in:
parent
793bc359ea
commit
2ab5d8500a
13 changed files with 194 additions and 29 deletions
|
@ -22,7 +22,12 @@ class ReservedDomain < ActiveRecord::Base
|
|||
|
||||
|
||||
def fill_empty_passwords
|
||||
self.password = SecureRandom.hex unless self.password
|
||||
|
||||
if self.password.empty?
|
||||
|
||||
self.password = SecureRandom.hex
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
def name= val
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue