Closed kimyu92 closed 6 years ago
Is it possible to support relation-based default_country_code
default_country_code
phony_normalize :phone, default_country_code: -> { model.country_code }, add_plus: false
Yeah, I struggled with the same issue. I was expecting this to work:
phony_normalize :phone, default_country_code: Proc.new { |instance| instance.country }
Pull requests always welcome.
Is it possible to support relation-based
default_country_code