Sha256: 87f884f3955029ced32620aae4481d4ad726e61664ecf8183ebbd87f5acdfe85

Contents?: true

Size: 440 Bytes

Versions: 3

Compression:

Stored size: 440 Bytes

Contents

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

module DataMapper
  module Validate
    module Fixtures
      class Kayak
        #
        # Behaviors
        #

        include ::DataMapper::Resource

        #
        # Properties
        #

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

        #
        # Validations
        #

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dm-validations-0.10.2 spec/fixtures/kayak.rb
dm-validations-0.10.1 spec/fixtures/kayak.rb
dm-validations-0.10.0 spec/fixtures/kayak.rb