repo.or.cz
/
beast-modified.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
beast rev 2066
[beast-modified.git]
/
vendor
/
plugins
/
will_paginate
/
test
/
fixtures
/
company.rb
blob
0d1c29b9068edc88e70d936148ea0c25b57a717a
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