Class: Qcourses::Company

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

Instance Method Summary collapse

Instance Method Details

#validateObject



5
6
7
8
9
10
11
12
13
# File 'lib/qcourses/models/registration.rb', line 5

def validate
  validates_presence :name
  validates_presence :contact_person
  validates_presence :contact_email
  validates_presence :invoice_address
  validates_presence :postal_code
  validates_presence :city
  validates_format EMAIL_REGEXP, :contact_email
end