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

gon should convert variables names to camel case (accord to lots of exists JavaScript code style guides) #13

Closed
kossnocorp opened this issue Oct 24, 2011 · 2 comments

Comments

@kossnocorp
Copy link

Example:

Server:

gon.current_user = @current_user

Client-side:

gon.currentUser

I understand what this change breaks exists code, so I suggest add config option to turn on camel case convertion.

@gazay
Copy link
Owner

gazay commented Oct 24, 2011

Good catch! I'll do it after compatible with Rails3

@gazay
Copy link
Owner

gazay commented Oct 26, 2011

Done in version 1.1.1

@gazay gazay closed this as completed Oct 26, 2011
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