##// END OF EJS Templates
Moved Rails plugins required by the core to lib/plugins....
Moved Rails plugins required by the core to lib/plugins. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9533 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r9351:8d73ddf73ffc
r9351:8d73ddf73ffc
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