Passes serializer options down into associations

This commit is contained in:
Alexandre de Oliveira
2015-03-11 16:28:27 -03:00
parent bcd3844e58
commit af81a403e3
3 changed files with 18 additions and 5 deletions

View File

@@ -99,6 +99,10 @@ CommentSerializer = Class.new(ActiveModel::Serializer) do
belongs_to :post
belongs_to :author
def custom_options
options
end
end
AuthorSerializer = Class.new(ActiveModel::Serializer) do