Mercurial > hg > soundsoftware-site
annotate .svn/pristine/1a/1ab06441767b89700eccb7f62767523259a141ff.svn-base @ 929:5f33065ddc4b redmine-1.3
Update to Redmine SVN rev 9414 on 1.3-stable branch
author | Chris Cannam |
---|---|
date | Wed, 27 Jun 2012 14:54:18 +0100 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 class Company < ActiveRecord::Base |
Chris@909 | 2 attr_protected :rating |
Chris@909 | 3 set_sequence_name :companies_nonstd_seq |
Chris@909 | 4 |
Chris@909 | 5 validates_presence_of :name |
Chris@909 | 6 def validate |
Chris@909 | 7 errors.add('rating', 'rating should not be 2') if rating == 2 |
Chris@909 | 8 end |
Chris@909 | 9 end |