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

conflict between json gem and rails json #4

Closed
nicolasochem opened this issue Jul 14, 2009 · 3 comments
Closed

conflict between json gem and rails json #4

nicolasochem opened this issue Jul 14, 2009 · 3 comments

Comments

@nicolasochem
Copy link

Hello,

I am generating json with the to_json method using the :except option and I bump into this error :

TypeError: wrong argument type Hash (expected Data)

This is because contacts depends on the json gem which had a to_json method conflicting with the ActiveSupport one, as described here :

http://stackoverflow.com/questions/683989/how-do-you-deal-with-the-conflict-between-activesupportjson-and-the-json-gem

Is it possible to have contacts use the rails json functions instead ?

Thank you for contacts !

@nicolasochem
Copy link
Author

This is now solved in rails 2.3.3
You can ask rails to use the json gem which speeds up json processing.

@givereal
Copy link

We ran into this problem as well and pushed a modification to our fork that addresses it: http://github.com/givereal/contacts

@cardmagic
Copy link
Owner

Fixed

jensb pushed a commit to jensb/contacts that referenced this issue Sep 13, 2012
…2808df4c58133ab7

Gmail: fallback to non primary emails
This issue was closed.
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

3 participants