Sha256: 4c175581ce8c9f42be27f2ed28f2d74218aea310fafc40cbe742b6189e3429c1

Contents?: true

Size: 328 Bytes

Versions: 17

Compression:

Stored size: 328 Bytes

Contents

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

class Country
  #
  # Behaviors
  #

  include DataMapper::Resource

  #
  # Properties
  #

  property :id,         Serial
  property :name,       String

  property :area,       Integer

  #
  # Validations
  #

  validates_numericality_of :area, :message => "Please use integers to specify area"
end

Version data entries

17 entries across 17 versions & 4 rubygems

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