]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/validates_email_format_of/test/fixtures/person.rb
d91c9d07d221b724ce72d367166f904a22ae1251
[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