view vendor/plugins/classic_pagination/test/fixtures/.svn/text-base/company.rb.svn-base @ 644:999a6b3c4cd1 feature_36

Remove well-meaning but ultimately unwise <nobr> elements (fixing #286)
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 09 Sep 2011 11:13:14 +0100
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