Mercurial > hg > soundsoftware-site
view .svn/pristine/1a/1ab06441767b89700eccb7f62767523259a141ff.svn-base @ 1292:bb51e86fa182 redmine-2.2-integration
removed deprecated rails functions
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 21 May 2013 18:12:13 +0100 |
parents | cbb26bc654de |
children |
line wrap: on
line source
class Company < ActiveRecord::Base attr_protected :rating set_sequence_name :companies_nonstd_seq validates_presence_of :name def validate errors.add('rating', 'rating should not be 2') if rating == 2 end end