Sha256: 3f7a6e4f95012f156548e1d384fb8965b50c394c915e39d96444ff1338628fb0

Contents?: true

Size: 438 Bytes

Versions: 14

Compression:

Stored size: 438 Bytes

Contents

module DataMapper
  module Validations
    module Fixtures
      class BoatDock
        #
        # Behaviors
        #

        include DataMapper::Resource

        #
        # Properties
        #

        property :id, Serial
        property :name, String, :auto_validation => false, :default => "I'm a long string"

        #
        # Validations
        #

        validates_length_of :name, :min => 3
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

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