Sha256: 67d5d910828af82005ecb94158bacc78b2c98fcb0df7a149069450d9272ca625
Contents?: true
Size: 203 Bytes
Versions: 2
Compression:
Stored size: 203 Bytes
Contents
class Order < ActiveRecord::Base attr_accessible :name before_save :err protected def err return true unless name == 'error' self.errors.add :base, 'panic' return false end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rows_controller-2.1.3 | test/dummy3/app/models/order.rb |
rows_controller-2.1.2 | test/dummy3/app/models/order.rb |