README.md in phony_rails-0.14.6 vs README.md in phony_rails-0.14.7
- old
+ new
@@ -149,10 +149,10 @@
You can validate against the normalized input as opposed to the raw input:
```ruby
phony_normalize :phone_number, as: :phone_number_normalized, default_country_code: 'US'
-validates_plausible_phone :phone_number, normalized_country_code: 'US'
+validates_plausible_phone :phone_number_normalized, presence: true, if: :phone_number?
```
Validation supports phone numbers with extension, such as `+18181231234 x1234` or `'+1 (818)151-5483 #4312'` out-of-the-box.
#### Allowing records country codes to not match phone number country codes