README.md in phony_rails-0.12.7 vs README.md in phony_rails-0.12.8

- old
+ new

@@ -104,10 +104,12 @@ phony_normalize :phone_number, as: :phone_number_normalized, :default_country_code => 'US' validates_plausible_phone :phone_number, :normalized_country_code => 'US' #### Allowing records country codes to not match phone number country codes -You may have a record specifying one country (via a `country_code` attribute) but using a phone number from another country. For example, your record may be from Japan but have a phone number from the Philippines. By default, `phony_rails` will consider your record's `country_code` as part of the validation. If that country doesn't match the country code in the phone number, validation will fail. +You may have a record specifying one country (via a `country_code` attribute) but using a phone number from another country. For example, your record may be from Japan but have a phone number from the Philippines. By default, `phony_rails` will consider your record's `country_code` as part of the validation. If that country doesn't match the country code in the phone number, validation will fail. + +Additionally, `phony_normalize` will always add the records country code as the country number (eg. the user enters '+81xxx' for Japan and the records `country_code` is 'DE' then `phony_normalize` will change the number to '+4981'). You can turn this off by adding `:enforce_record_country => false` to the validation options. The country_code will then only be added if no country code is specified. If you want to allow records from one country to have phone numbers from a different one, there are a couple of options you can use: `ignore_record_country_number` and `ignore_record_country_code`. Use them like so: validates :phone_number, :phony_plausible => { :ignore_record_country_code => true, :ignore_record_country_number => true }