Sha256: 45aa7f43f7b5c3de925f683c63e0e31e668482f9d06a78387ff03f829fdb0c88

Contents?: true

Size: 357 Bytes

Versions: 18

Compression:

Stored size: 357 Bytes

Contents

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

class City
  #
  # Behaviors
  #

  include DataMapper::Resource

  #
  # Properties
  #

  property :id,         Serial
  property :name,       String

  property :founded_in, Integer, :auto_validation => false

  #
  # Validations
  #

  validates_numericality_of :founded_in, :message => "Foundation year must be an integer"
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
sbf-dm-validations-1.4.0 spec/fixtures/city.rb
sbf-dm-validations-1.3.0 spec/fixtures/city.rb
sbf-dm-validations-1.3.0.beta spec/fixtures/city.rb
ardm-validations-1.2.0 spec/fixtures/city.rb
aequitas-0.0.1 spec_legacy/fixtures/city.rb
dm-validations-1.2.0 spec/fixtures/city.rb
dm-validations-1.2.0.rc2 spec/fixtures/city.rb
dm-validations-1.2.0.rc1 spec/fixtures/city.rb
dm-validations-1.1.0 spec/fixtures/city.rb
dm-validations-1.1.0.rc3 spec/fixtures/city.rb
dm-validations-1.1.0.rc2 spec/fixtures/city.rb
dm-validations-1.1.0.rc1 spec/fixtures/city.rb
dm-validations-1.0.2 spec/fixtures/city.rb
dm-validations-1.0.1 spec/fixtures/city.rb
dm-validations-1.0.0 spec/fixtures/city.rb
dm-validations-1.0.0.rc3 spec/fixtures/city.rb
dm-validations-1.0.0.rc2 spec/fixtures/city.rb
dm-validations-1.0.0.rc1 spec/fixtures/city.rb