Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_country_code forces country code #33

Closed
calleluks opened this issue Jun 25, 2013 · 3 comments
Closed

default_country_code forces country code #33

calleluks opened this issue Jun 25, 2013 · 3 comments

Comments

@calleluks
Copy link

Hi! I'm trying to use the default_country_code parameter while also making it possible for my users to type in an alternative country code themselves, the problem is that the default_country_code parameter seems to force the country code.

The below example is from the readme and is not working according to the documentation:

1.9.3p194 :005 > PhonyRails.normalize_number('+4790909090', :default_country_code => 'SE')
=> "464790909090"

It should yield "4790909090"

@joost
Copy link
Owner

joost commented Jun 25, 2013

Please check if you're using the latest version. Mine gives:

1.9.3p385 :001 > PhonyRails.normalize_number('+4790909090', :default_country_code => 'SE') # => "4790909090" 

@joost joost closed this as completed Jun 25, 2013
@joost
Copy link
Owner

joost commented Jun 25, 2013

BTW there is also a spec with this example and all tests pass.

@calleluks
Copy link
Author

Ok sorry, checked bundle and got Using phony_rails (0.2.0). But I did bundle update phony_rails this morning, any idea why i didn't get the 0.4.0 version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants