Sha256: 0f6f312dcc33473d7d02110cb78ee6f6ff87268d4cb68b282fcd8ff0ea3ff7ce
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
module DataMapper module Validate module Fixtures class Barcode # # Behaviors # include DataMapper::Resource # # Properties # without_auto_validations do property :code, String, :key => true end # # Validations # validates_length :code, :max => 10 def self.valid_instance new(:code => "3600029145") end end # Barcode end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dm-validations-0.10.2 | spec/fixtures/barcode.rb |
dm-validations-0.10.1 | spec/fixtures/barcode.rb |
dm-validations-0.10.0 | spec/fixtures/barcode.rb |