111396946-views_methods

This commit is contained in:
Stas 2016-02-03 15:55:39 +02:00
parent 793bc359ea
commit 2ab5d8500a
13 changed files with 194 additions and 29 deletions

View file

@ -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