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

Add serialization_scope to README #741

Closed
rafaelcgo opened this issue Nov 26, 2014 · 2 comments
Closed

Add serialization_scope to README #741

rafaelcgo opened this issue Nov 26, 2014 · 2 comments

Comments

@rafaelcgo
Copy link

Just a small suggestion that might help others...

I was struggling with undefined method 'authenticate' for nil:NilClass for my requests using the serializer (Rspec).

Turns out all I needed was to add serialization_scope :view_context but I only discovered it when watching the amazing Railcast about the gem: http://railscasts.com/episodes/409-active-model-serializers?view=asciicast

I think you guys should add serialization_scope documentation to the readme, to make things easier. And refer to the Railscast as well..

@bf4
Copy link
Member

bf4 commented Nov 26, 2015

@rafaelcgo in case you're interested, I'm documenting this in #1252

Thanks for the view_context idea

@rafaelcgo
Copy link
Author

I'm glad I could help! 👏

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

2 participants