README.md in phony_rails-0.0.12 vs README.md in phony_rails-0.1.0
- old
+ new
@@ -22,10 +22,10 @@
## Usage
In your model add:
class SomeModel < ActiveRecord::Base
- phony_normalize :phone_number, :default_country_code => 'US' # Normalizes the attribute itself
+ phony_normalize :phone_number, :default_country_code => 'US' # Normalizes the attribute itself on validation
phony_normalized_method :fax_number # Creates method normalized_fax_number that returns the normalized version of fax_number
end
The `:default_country_code` options is used to specify a country_code when normalizing.