mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fix definition of serializer attributes with multiple calls to attribute instead of one single call to attributes.
This commit is contained in:
3
test/fixtures/poro.rb
vendored
3
test/fixtures/poro.rb
vendored
@@ -134,7 +134,8 @@ end
|
||||
|
||||
AuthorSerializer = Class.new(ActiveModel::Serializer) do
|
||||
cache key:'writer', skip_digest: true
|
||||
attributes :id, :name
|
||||
attribute :id
|
||||
attribute :name
|
||||
|
||||
has_many :posts, embed: :ids
|
||||
has_many :roles, embed: :ids
|
||||
|
||||
Reference in New Issue
Block a user