Mercurial > hg > soundsoftware-site
view .svn/pristine/1a/1ab06441767b89700eccb7f62767523259a141ff.svn-base @ 1237:1d5451bf82d7 redmine-2.2-integration
Added missing route to auto_completes#project_tags (AutoCompletes controller patched in redmine tags plugin)
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 26 Mar 2013 15:11:27 +0000 |
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