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

Refactor to decouple controller mixin from AM::Serializer #319

Closed
wants to merge 1 commit into from
Closed

Refactor to decouple controller mixin from AM::Serializer #319

wants to merge 1 commit into from

Conversation

geigerzaehler
Copy link
Contributor

Since AM::Serializer.build_json is highly dependent on the controller it should be a helper function of the controller. Functionality hasn't changed.

Eventually it would be great to unify the usage of the root attribute for arrays and single objects to get rid of the awkward lines 61-65.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0%) when pulling 35cb990 on geigerzaehler:refactor_controller into c97acfd on rails-api:master.

@ghost ghost assigned spastorino May 29, 2013
@spastorino
Copy link
Contributor

AMS was rewritten and the solution is similar to the one you're proposing here. Please take a look at it and let me know. Thanks for helping!

@spastorino spastorino closed this Oct 21, 2013
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

3 participants