Sha256: 0aef68b730182d4def99db4768bfc5afc82d38a7ba70f0817c4a6856c184b816

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

require 'dao'



class C < ::Map
  include Dao::Validations
  validates_presence_of :foo
end

c = C.new

p c.valid?
p c.errors

c.update(:foo => 42)

p c.valid?
p c.errors

#p 'c.validator.attributes' => c.validator.attributes
#p 'c' => c

__END__

p c.valid?


p c

p c.valid?

#c.validator
#p c.validator.object
#p c.valid?
#p c.errors
#p c.status

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dao-4.2.1 b.rb