I see that it is possible to serialize links through the meta attributes but it would be nice to have the option to specify links in the blueprint.
It would be ideal to ultimately be able to set the specification adapter that blueprinter could use during serialization (similar to ActiveModel::Serializers).
class ArticleBlueprint < Blueprinter::Base
...
field :content
link :self do |object|
href "articles/#{object.id}"
end
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I see that it is possible to serialize links through the meta attributes but it would be nice to have the option to specify links in the blueprint.
It would be ideal to ultimately be able to set the specification adapter that blueprinter could use during serialization (similar to ActiveModel::Serializers).
Which would give: