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

Is there a upgrade guide from 0.9.x -> 0.10.x ?? #2028

Closed
kapso opened this issue Jan 14, 2017 · 4 comments
Closed

Is there a upgrade guide from 0.9.x -> 0.10.x ?? #2028

kapso opened this issue Jan 14, 2017 · 4 comments

Comments

@kapso
Copy link

kapso commented Jan 14, 2017

Something like this?

https://github.com/rails-api/active_model_serializers/blob/6c6e45b23f464bd0bb92ae05a4284b72b017be21/docs/howto/upgrade_from_0_8_to_0_10.md

Running into lot of issues, so was wondering. For example I am getting ERROR! NameError: uninitialized constant ActiveModel::ArraySerializer and cant seem to find the fix.

@kapso kapso closed this as completed Jan 14, 2017
@toobulkeh
Copy link

@kapso did you find one?

@toobulkeh
Copy link

toobulkeh commented Mar 30, 2017

I'll keep some notes for a guide here (0.8 to 0.10):

  1. Change the adapter to json:
# in config/initializers/active_model_serializer.rb
ActiveModelSerializers.config.adapter = :json
  1. On all respond_with calls, add full depth includes
# in app/controllers/api/*.rb
@collection = Collection.where ...
respond_with @collection, include: "**"

@bf4
Copy link
Member

bf4 commented Mar 30, 2017

@toobulkeh Thanks for keeping your notes here. I thought I remembered someone writing up their 0.9 -> 0.10 changes, but didn't want to make a guide because thought they were too idiosyncratic... didn't find it with the upgrade label...

@bf4
Copy link
Member

bf4 commented Apr 3, 2017

Found it #1864 (comment) https://gist.github.com/bf4/20daea04c2f15c91ab44f9ffe1b7ada7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants