mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fixed #911
This commit is contained in:
7
test/fixtures/poro.rb
vendored
7
test/fixtures/poro.rb
vendored
@@ -178,6 +178,13 @@ AlternateBlogSerializer = Class.new(ActiveModel::Serializer) do
|
||||
attribute :name, key: :title
|
||||
end
|
||||
|
||||
CustomBlogSerializer = Class.new(ActiveModel::Serializer) do
|
||||
attribute :id
|
||||
attribute :special_attribute
|
||||
|
||||
has_many :articles
|
||||
end
|
||||
|
||||
CommentPreviewSerializer = Class.new(ActiveModel::Serializer) do
|
||||
attributes :id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user