Class: Qcourses::Employee

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/qcourses/models/registration.rb

Instance Method Summary collapse

Instance Method Details

#validateObject



18
19
20
21
22
# File 'lib/qcourses/models/registration.rb', line 18

def validate
  validates_presence :name
  validates_presence :email
  validates_format EMAIL_REGEXP, :email
end