]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/validates_email_format_of/test/fixtures/person.rb
Update to composite_primary_keys 3.0.9
[rails.git] / vendor / plugins / validates_email_format_of / test / fixtures / person.rb
1 class Person < ActiveRecord::Base
2   validates_email_format_of :email, 
3                             :on => :create, 
4                             :message => 'fails with custom message', 
5                             :allow_nil => true
6 end
7
8 class MxRecord < ActiveRecord::Base
9   validates_email_format_of :email, 
10                             :on => :create, 
11                             :check_mx => true
12 end