Permalink
Browse files

Readme updated.

  • Loading branch information...
1 parent 7edccc3 commit 7a239c8c940cb1524d77e0368cabd099b3459e8e @joost committed May 6, 2013
Showing with 9 additions and 2 deletions.
  1. +8 −1 README.md
  2. +1 −1 lib/phony_rails/version.rb
View
@@ -44,11 +44,14 @@ PhonyRails will also check your model for a country_code method to use when norm
You can also do-it-yourself and call:
# Options:
- # :country_code => The country code we should use.
+ # :country_code => The country code we should use (forced).
# :default_country_code => Some fallback code (eg. 'NL') that can be used as default (comes from phony_normalize_numbers method).
PhonyRails.normalize_number('some number', :country_code => 'NL')
+ PhonyRails.normalize_number('+4790909090', :country_code => 'SE') # => '464790909090' (forced to +46)
+ PhonyRails.normalize_number('+4790909090', :default_country_code => 'SE') # => '4790909090' (still +47 so not changed)
+
### Validation
In your model use the Phony.plausible method to validate an attribute:
@@ -98,6 +101,10 @@ Say you want to find a record by a phone number. Best is to normalize user input
## Changelog
+0.3.0
+* Now ability to force change a country_code.
+ See: https://github.com/joost/phony_rails/pull/23#issuecomment-17480463
+
0.2.1
* Better error handling by @k4nar
@@ -1,3 +1,3 @@
module PhonyRails
- VERSION = "0.2.2"
+ VERSION = "0.3.0"
end

0 comments on commit 7a239c8

Please sign in to comment.