]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/classic_pagination/test/fixtures/company.rb
Switch to using http_accept_language as a gem
[rails.git] / vendor / plugins / classic_pagination / test / fixtures / company.rb
1 class Company < ActiveRecord::Base
2   attr_protected :rating
3   set_sequence_name :companies_nonstd_seq
4
5   validates_presence_of :name
6   def validate
7     errors.add('rating', 'rating should not be 2') if rating == 2
8   end  
9 end