Sha256: 16b66754f81c079f44aeda54d068c03af95a49b7c2ce3aef55ba4f445d526807

Contents?: true

Size: 447 Bytes

Versions: 14

Compression:

Stored size: 447 Bytes

Contents

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

module DataMapper
  module Validations
    module Fixtures
      class Kayak
        #
        # Behaviors
        #

        include ::DataMapper::Resource

        #
        # Properties
        #

        property :id,       Serial
        property :salesman, String, :auto_validation => false

        #
        # Validations
        #

        validates_absence_of :salesman, :on => :sale
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

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