Is it possible to have a serializer return an association of nils if no associated record exists?
class CommentSerializer < ActiveModel::Serializer
# does not actually work
super if super.present?
This would allow something like the following to run without error, regardless of article presence:
You could do
def article object.article || Article.new end