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

Added as_json method for multibyte strings #4808

Merged
merged 1 commit into from
Feb 1, 2012

Conversation

route
Copy link
Contributor

@route route commented Jan 31, 2012

For multibyte strings we need as_json method. Multibyte strings are object and if we are calling "text".mb_chars.as_json then result will be {"wrapped_string"=>"text"} although I've expected a string.

josevalim pushed a commit that referenced this pull request Feb 1, 2012
Added as_json method for multibyte strings
@josevalim josevalim merged commit 7179fad into rails:master Feb 1, 2012
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

Successfully merging this pull request may close these issues.

None yet

2 participants