We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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).
undefined method 'authenticate' for nil:NilClass
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
serialization_scope :view_context
I think you guys should add serialization_scope documentation to the readme, to make things easier. And refer to the Railscast as well..
serialization_scope
The text was updated successfully, but these errors were encountered:
@rafaelcgo in case you're interested, I'm documenting this in #1252
Thanks for the view_context idea
Sorry, something went wrong.
I'm glad I could help! 👏
No branches or pull requests
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=asciicastI think you guys should add
serialization_scope
documentation to the readme, to make things easier. And refer to the Railscast as well..The text was updated successfully, but these errors were encountered: