annotate .svn/pristine/1a/1ab06441767b89700eccb7f62767523259a141ff.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +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