##// END OF EJS Templates
tagged version 2.0.2...
tagged version 2.0.2 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/tags/2.0.2@9774 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r9351:8d73ddf73ffc
r9591:b83ed5a0404e 2.0.2
Show More
company.rb
8 lines | 225 B | text/x-ruby | RubyLexer
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