Skip to content

Don't call link_builder when custom link is provided#826

Merged
lgebhardt merged 1 commit intoJSONAPI-Resources:masterfrom
knapo:dont-call-link-builder-when-custom-self-is-present
Sep 12, 2016
Merged

Don't call link_builder when custom link is provided#826
lgebhardt merged 1 commit intoJSONAPI-Resources:masterfrom
knapo:dont-call-link-builder-when-custom-self-is-present

Conversation

@knapo
Copy link
Copy Markdown
Contributor

@knapo knapo commented Sep 9, 2016

So I wan't to override self link using custom_links (make it nil since I don't need it for embedded relationship). However, for current implementation link builder is being called anyway and I need to define route which is never used, and it make the serialization slower as the route generation is not the fastest thing in rails.

@lgebhardt lgebhardt merged commit 539051b into JSONAPI-Resources:master Sep 12, 2016
@lgebhardt
Copy link
Copy Markdown
Contributor

@knapo Thanks!

@knapo knapo deleted the dont-call-link-builder-when-custom-self-is-present branch September 13, 2016 06:43
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