mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Passes serializer options down into associations
This commit is contained in:
4
test/fixtures/poro.rb
vendored
4
test/fixtures/poro.rb
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user