Sha256: 8acfb3fd349e01d9d30c96b83868c19765224fd8a79b9f20562ced599f1deb84
Contents?: true
Size: 225 Bytes
Versions: 103
Compression:
Stored size: 225 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
103 entries across 103 versions & 9 rubygems