Sha256: 684ae6f4c528ad5f28c7a254c4755d610ee4c41441676219dd27762d9e274029

Contents?: true

Size: 546 Bytes

Versions: 14

Compression:

Stored size: 546 Bytes

Contents

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

module DataMapper
  module Validations
    module Fixtures
      class MemoryObject
        #
        # Behaviors
        #

        include ::DataMapper::Resource

        #
        # Properties
        #

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

        #
        # Validations
        #

        validates_primitive_type_of :marked
        validates_primitive_type_of :color
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ardm-validations-1.2.0 spec/fixtures/memory_object.rb
dm-validations-1.2.0 spec/fixtures/memory_object.rb
dm-validations-1.2.0.rc2 spec/fixtures/memory_object.rb
dm-validations-1.2.0.rc1 spec/fixtures/memory_object.rb
dm-validations-1.1.0 spec/fixtures/memory_object.rb
dm-validations-1.1.0.rc3 spec/fixtures/memory_object.rb
dm-validations-1.1.0.rc2 spec/fixtures/memory_object.rb
dm-validations-1.1.0.rc1 spec/fixtures/memory_object.rb
dm-validations-1.0.2 spec/fixtures/memory_object.rb
dm-validations-1.0.1 spec/fixtures/memory_object.rb
dm-validations-1.0.0 spec/fixtures/memory_object.rb
dm-validations-1.0.0.rc3 spec/fixtures/memory_object.rb
dm-validations-1.0.0.rc2 spec/fixtures/memory_object.rb
dm-validations-1.0.0.rc1 spec/fixtures/memory_object.rb