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

Grape::ActiveModelSerializers for models with compound names #1

Merged
merged 1 commit into from
Apr 30, 2013
Merged

Grape::ActiveModelSerializers for models with compound names #1

merged 1 commit into from
Apr 30, 2013

Conversation

george
Copy link
Contributor

@george george commented Apr 30, 2013

Grape::ActiveModelSerializers for models with compound names
  should generate the proper 'root' node for individual objects
  should generate the proper 'root' node for serialized arrays of objects

Just changed #downcase to #underscore in lib/grape-active_model_serializers/formatter.rb

And thanks for the library. Much appreciated!

  should generate the proper 'root' node for individual objects
  should generate the proper 'root' node for serialized arrays of objects
@jrhe
Copy link
Member

jrhe commented Apr 30, 2013

Oh gosh, someone is actually using this. I haven't quite finished it
(arrays are totally broken) but I will merge this change in for now. Thank
you!

On 30 April 2013 19:24, George Anderson [email protected] wrote:

Grape::ActiveModelSerializers for models with compound names
should generate the proper 'root' node for individual objects
should generate the proper 'root' node for serialized arrays of objects

Just changed #downcase to #underscore in
lib/grape-active_model_serializers/formatter.rb

And thanks for the library. Much appreciated!

You can merge this Pull Request by running

git pull https://github.com/george/grape-active_model_serializers proper_root_node_for_compound_model_names

Or view, comment on, or merge it at:

#1
Commit Summary

  • Grape::ActiveModelSerializers for models with compound names

File Changes

Patch Links:

jrhe added a commit that referenced this pull request Apr 30, 2013
…_names

Grape::ActiveModelSerializers for models with compound names
@jrhe jrhe merged commit e98149a into ruby-grape:master Apr 30, 2013
@george
Copy link
Contributor Author

george commented Apr 30, 2013

Arrays appear to be working for me, though I'm just getting started with my API implementation. What's not working? Perhaps I could work on it a bit.

Thanks again.

@jrhe
Copy link
Member

jrhe commented Apr 30, 2013

Maybe I pushed the changes to add array support. I will have a look back through the code. I just remember something important needed doing then life got in the way.

@george
Copy link
Contributor Author

george commented Apr 30, 2013

Understood. Ping me if I can do anything. And thanks for your code.

On Tue, Apr 30, 2013 at 4:14 PM, jrhe [email protected] wrote:

Maybe I pushed the changes to add array support. I will have a look back
through the code. I just remember something important needed doing then
life got in the way.


Reply to this email directly or view it on GitHubhttps://github.com//pull/1#issuecomment-17251334
.

@george george deleted the proper_root_node_for_compound_model_names branch April 30, 2013 20:28
@george george restored the proper_root_node_for_compound_model_names branch May 23, 2013 00:47
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.

3 participants