Open listrophy opened 4 years ago
Just like attribute, this PR allows the dev to specify links as follows:
attribute
link(:download, if: ->(obj, params) { params && params[:signed_url] }) do |obj, params| params[:signed_url] end
Looks like an improvement. You're welcome to add the PR here too: https://github.com/fast-jsonapi/fast_jsonapi/issues/1
Just like
attribute
, this PR allows the dev to specify links as follows: