Mercurial > hg > soundsoftware-site
view vendor/plugins/classic_pagination/test/fixtures/.svn/text-base/company.rb.svn-base @ 846:2a298083742b luisf
Merge from branch "bug_365"
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 01 Feb 2012 13:20:45 +0000 |
parents | 513646585e45 |
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