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
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/shoulda-2.11.3/test/rails3_root/app/models/address.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/shoulda-2.11.3/test/rails3_root/app/models/address.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/shoulda-2.11.3/test/rails3_root/app/models/address.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/shoulda-2.11.3/test/rails2_root/app/models/address.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/shoulda-2.11.3/test/rails3_root/app/models/address.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/shoulda-2.11.3/test/rails2_root/app/models/address.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/shoulda-2.11.3/test/rails2_root/app/models/address.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/shoulda-2.11.3/test/rails2_root/app/models/address.rb
Flamefork-shoulda-2.10.1 test/rails_root/app/models/address.rb
Flamefork-shoulda-2.10.2 test/rails_root/app/models/address.rb
auser-poolparty-1.3.0 vendor/gems/shoulda/test/rails_root/app/models/address.rb
auser-poolparty-1.3.1 vendor/gems/shoulda/test/rails_root/app/models/address.rb
auser-poolparty-1.3.10 vendor/gems/shoulda/test/rails_root/app/models/address.rb
auser-poolparty-1.3.11 vendor/gems/shoulda/test/rails_root/app/models/address.rb
auser-poolparty-1.3.12 vendor/gems/shoulda/test/rails_root/app/models/address.rb
auser-poolparty-1.3.13 vendor/gems/shoulda/test/rails_root/app/models/address.rb
auser-poolparty-1.3.14 vendor/gems/shoulda/test/rails_root/app/models/address.rb
auser-poolparty-1.3.15 vendor/gems/shoulda/test/rails_root/app/models/address.rb
auser-poolparty-1.3.16 vendor/gems/shoulda/test/rails_root/app/models/address.rb
auser-poolparty-1.3.17 vendor/gems/shoulda/test/rails_root/app/models/address.rb