README.md in phony_rails-0.6.0 vs README.md in phony_rails-0.6.1
- old
+ new
@@ -81,14 +81,18 @@
validates_plausible_phone :phone_number, :without => /^\+\d+/
validates_plausible_phone :phone_number, :presence => true, :with => /^\+\d+/
the i18n key is `:improbable_phone`
-You can also validate if a number has the correct country code:
+You can also validate if a number has the correct country number:
- validates_plausible_phone :phone_number, :country_code => '61'
+ validates_plausible_phone :phone_number, :country_number => '61'
+or correct country code:
+
+ validates_plausible_phone :phone_number, :country_code => 'AU'
+
### Display / Views
In your views use:
<%= "311012341234".phony_formatted(:format => :international, :spaces => '-') %>
@@ -191,5 +195,7 @@
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
Don't forget to add tests and run rspec before creating a pull request :)
+
+See all contributors on https://github.com/joost/phony_rails/graphs/contributors.