Class: Bosh::Director::Models::User

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/models/user.rb

Instance Method Summary collapse

Instance Method Details

#validateObject



5
6
7
8
9
# File 'lib/bosh/director/models/user.rb', line 5

def validate
  validates_presence :username
  validates_presence :password
  validates_unique :username
end