Sha256: f02f7604eea27ccf20515d8ec638c6731f275afe93221dae2d178cdd9e07f1f0
Contents?: true
Size: 626 Bytes
Versions: 2
Compression:
Stored size: 626 Bytes
Contents
# -*- coding: utf-8 -*- module DataMapper module Validate module Fixtures # see http://datamapper.lighthouseapp.com/projects/20609/tickets/671 class Page # # Behaviors # include DataMapper::Resource # # Properties # property :id, Serial, :key => true property :body, Text, :nullable => false # # Validations # # duplicates inferred validation for body (caused by # :nullable => false) validates_present :body end end # Fixtures end # Validate end # DataMapper
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dm-validations-0.10.1 | spec/fixtures/page.rb |
dm-validations-0.10.0 | spec/fixtures/page.rb |