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

Allow relationship links to be declared as object method #2

Merged

Conversation

jopotts
Copy link
Contributor

@jopotts jopotts commented Oct 4, 2019

Allow the definition of links on relationships to be declared as a method on the object.

For example:

# actor_relationship_links is a method on the object being serialized.
has_many :actors, links: :actor_relationship_links 

@kpheasey kpheasey merged commit 2b6c816 into jsonapi-serializer:dev Oct 4, 2019
kpheasey pushed a commit that referenced this pull request Oct 4, 2019
* Allow relationship links to be declared as object method

* Relationship links note added to readme
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.

2 participants