Sha256: 2698ff9b39ace2d021f9d951278e05321e23c41650437ba001ecf616ac8c6c27

Contents?: true

Size: 174 Bytes

Versions: 8

Compression:

Stored size: 174 Bytes

Contents

# coding: utf-8

class UserWithValidation
  include Mongoid::Document

  field :phone, type: RussianPhone.field(default_country: 7, allowed_cities: [495]), validate: true
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
russian_phone-0.8.0 spec/support/user_with_validation.rb
russian_phone-0.7.0 spec/support/user_with_validation.rb
russian_phone-0.6.1 spec/support/user_with_validation.rb
russian_phone-0.6.0 spec/support/user_with_validation.rb
russian_phone-0.5.3 spec/support/user_with_validation.rb
russian_phone-0.5.2 spec/support/user_with_validation.rb
russian_phone-0.5.1 spec/support/user_with_validation.rb
russian_phone-0.5.0 spec/support/user_with_validation.rb