README.md in phony_rails-0.1.7 vs README.md in phony_rails-0.1.8
- old
+ new
@@ -60,10 +60,12 @@
validates_plausible_phone :phone_number, :presence => true
validates_plausible_phone :phone_number, :with => /^\+\d+/
validates_plausible_phone :phone_number, :without => /^\+\d+/
validates_plausible_phone :phone_number, :presence => true, :with => /^\+\d+/
+the i18n key is `:improbable_phone`
+
### Display / Views
In your views use:
<%= "some number string variable".phony_formatted(:format => :international, :spaces => '-') %>
@@ -73,9 +75,12 @@
Say you want to find a record by a phone number. Best is to normalize user input and compare to an attribute stored in the db.
Home.find_by_normalized_phone_number(PhonyRails.normalize_number(params[:phone_number]))
## Changelog
+
+0.1.8
+* Improved validation methods by ddidier.
0.1.6
* Added :as option to phony_normalize.
0.1.5