0.0
No commit activity in last 3 years
No release in over 3 years
phone_validator makes phone validation natural for ActiveModel 3+ objects. Validation using global_phone.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.4
~> 0.9

Runtime

>= 3.0.0
>= 1.0.1
 Project Readme

Phone Validator

build status

phone_validator makes phone validation natural for ActiveModel 3+ objects. The validation is using the excellent global_phone

Requirements

activemodel >= 3.0.0
global_phone >= 1.0.1

Usage

Install global_phone

Add to your Gemfile:

gem 'phone_validator'

Run:

bundle install

Then add the following to your model:

validates :my_phone_attribute, :phone => true

License

MIT License. Copyright 2013 Sébastien Grosjean, sponsored by BookingSync, Vacation Rental's Booking Calendar Software