Sha256: 65d2a03644f609bc2c347434aeb1fbc6e9ca1d918378486762dc1cedbb074c58

Contents?: true

Size: 768 Bytes

Versions: 3

Compression:

Stored size: 768 Bytes

Contents

# -*- coding: utf-8 -*-

require File.join(File.dirname(__FILE__),'integer_dumped_as_string_property')

module DataMapper
  module Validation
    module Fixtures
      class MemoryObject
        #
        # Behaviors
        #

        include ::DataMapper::Resource

        #
        # Properties
        #

        property :id,     Serial
        property :marked, Boolean, :auto_validation => false
        property :color,  String,  :auto_validation => false

        property :stupid_integer, IntegerDumpedAsStringProperty, :auto_validation => false

        #
        # Validations
        #

        validates_primitive_type_of :marked
        validates_primitive_type_of :color
        validates_primitive_type_of :stupid_integer
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sbf-dm-validations-1.4.0 spec/fixtures/memory_object.rb
sbf-dm-validations-1.3.0 spec/fixtures/memory_object.rb
sbf-dm-validations-1.3.0.beta spec/fixtures/memory_object.rb