Skip to content

Add serialization_scope to README #741

Closed
@rafaelcgo

Description

@rafaelcgo

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..

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions