Skip to content

Allow relationship links to be declared as object method - #2

Merged
kpheasey merged 3 commits into
jsonapi-serializer:devfrom
bookwhen:relationship_links_by_symbol
Oct 4, 2019
Merged

Allow relationship links to be declared as object method#2
kpheasey merged 3 commits into
jsonapi-serializer:devfrom
bookwhen:relationship_links_by_symbol

Conversation

@jopotts

@jopotts jopotts commented Oct 4, 2019

Copy link
Copy Markdown
Contributor

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