Mercurial > hg > soundsoftware-site
comparison vendor/plugins/classic_pagination/test/fixtures/.svn/text-base/company.rb.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
1 class Company < ActiveRecord::Base | |
2 attr_protected :rating | |
3 set_sequence_name :companies_nonstd_seq | |
4 | |
5 validates_presence_of :name | |
6 def validate | |
7 errors.add('rating', 'rating should not be 2') if rating == 2 | |
8 end | |
9 end |