Sha256: efdf65b4bfff33d041be60b4b629fc7eca29ef265de53b02c31238fa25dbc5b9

Contents?: true

Size: 248 Bytes

Versions: 291

Compression:

Stored size: 248 Bytes

Contents

class Address < ActiveRecord::Base
  belongs_to :addressable, :polymorphic => true
  validates_uniqueness_of :title, :scope => [:addressable_type, :addressable_id]
  
  validates_length_of :zip, :minimum => 5
  validates_numericality_of :zip  
end

Version data entries

291 entries across 170 versions & 30 rubygems

Version Path
hashrocket-clearance-0.4.3 test/rails_root/vendor/gems/thoughtbot-shoulda-2.0.4/test/rails_root/app/models/address.rb
iGEL-shoulda-2.10.2 test/rails_root/app/models/address.rb
mattknox-goaloc-0.3.0 lib/goaloc/generators/resources/shoulda/test/rails_root/app/models/address.rb
mattknox-goaloc-0.4.0 lib/goaloc/generators/resources/shoulda/test/rails_root/app/models/address.rb
mjankowski-shoulda-2.0.4 test/rails_root/app/models/address.rb
mjankowski-shoulda-2.0.5 test/rails_root/app/models/address.rb
ratnikov-shoulda-2.0.6.1 test/rails_root/app/models/address.rb
ratnikov-shoulda-2.0.6.2 test/rails_root/app/models/address.rb
ratnikov-shoulda-2.0.6.3 test/rails_root/app/models/address.rb
ratnikov-shoulda-2.9.0.1 test/rails_root/app/models/address.rb
ratnikov-shoulda-2.9.0.2 test/rails_root/app/models/address.rb
ratnikov-shoulda-2.9.0.3 test/rails_root/app/models/address.rb
ratnikov-shoulda-2.9.0 test/rails_root/app/models/address.rb
rmm5t-shoulda-2.0.2 test/rails_root/app/models/address.rb
rmm5t-shoulda-2.0.5 test/rails_root/app/models/address.rb
rmm5t-shoulda-2.0.6 test/rails_root/app/models/address.rb
rmm5t-shoulda-2.9.1 test/rails_root/app/models/address.rb
technicalpickles-shoulda-2.0.0 test/rails_root/app/models/address.rb
technicalpickles-shoulda-2.0.1 test/rails_root/app/models/address.rb
technicalpickles-shoulda-2.0.2 test/rails_root/app/models/address.rb