Sha256: e703a55f8130d0cfb34a0d0e432f97a2232aa800b73e7e3f936d95c6414c9dfc

Contents?: true

Size: 129 Bytes

Versions: 13

Compression:

Stored size: 129 Bytes

Contents

require 'ssn_validator.rb'

class Person
  include Mongoid::Document

  field :name
  field :ssn

  validates :ssn, ssn: true
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
mongoid-spec-4.0.1 spec/models/person.rb
mongoid-rspec-3.0.0 spec/models/person.rb
mongoid-rspec-2.2.0 spec/models/person.rb
mongoid-rspec-2.1.0 spec/models/person.rb
mongoid-rspec-1.13.0 spec/models/person.rb
mongoid-rspec-2.0.0 spec/models/person.rb
mongoid-rspec-2.0.0.rc1 spec/models/person.rb
glebtv-mongoid-rspec-3.0.0 spec/models/person.rb
mongoid4-rspec-1.11.0 spec/models/person.rb
glebtv-mongoid-rspec-1.12.0 spec/models/person.rb
mongoid-rspec-1.11.0 spec/models/person.rb
mongoid-rspec-1.10.0 spec/models/person.rb
mongoid-rspec-1.9.0 spec/models/person.rb