Sha256: ebcec8faf9a2c7c45d2c66b99381f003d5c4bee091bf46d63559230f71bc29be
Contents?: true
Size: 642 Bytes
Versions: 3
Compression:
Stored size: 642 Bytes
Contents
module DataMapper module Validate module Fixtures class Mittelschnauzer # # Behaviors # include DataMapper::Resource # # Properties # without_auto_validations do property :name, String, :key => true property :height, Float end # # Validations # validates_length :name, :min => 2, :allow_nil => false validates_is_number :height, :lt => 55.2 def self.valid_instance new(:name => "Roudolf Wilde", :height => 50.4) end end # Mittelschnauzer end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dm-validations-0.10.2 | spec/fixtures/mittelschnauzer.rb |
dm-validations-0.10.1 | spec/fixtures/mittelschnauzer.rb |
dm-validations-0.10.0 | spec/fixtures/mittelschnauzer.rb |