Sha256: 580ddf0a1e1526fba8751116c33967150f4c5c28b59a8d5526f460478c9cd92a
Contents?: true
Size: 226 Bytes
Versions: 8
Compression:
Stored size: 226 Bytes
Contents
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
Version data entries
8 entries across 8 versions & 1 rubygems