Skip to content

Conversation

@listrophy
Copy link
Contributor

See also Netflix/fast_jsonapi#442

Just like attribute, this PR allows the dev to specify links as follows:

link(:download, if: ->(obj, params) { params && params[:signed_url] }) do |obj, params|
  params[:signed_url]
end

@kpheasey kpheasey merged commit ddc261d into jsonapi-serializer:dev Oct 25, 2019
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