Sha256: f76ee07ad7dd27309cbb90e9685f6bbfbdd7308fd5457862bebaedc37ab421e0

Contents?: true

Size: 151 Bytes

Versions: 8

Compression:

Stored size: 151 Bytes

Contents

class PostSerializer < ActiveModel::Serializer
  attributes :id, :title

  has_one :user
  has_one :category
  has_many :comments
  has_many :tags
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
embedded_associations-4.1.2 spec/support/app/app/serializers/post_serializer.rb
embedded_associations-4.1.1 spec/support/app/app/serializers/post_serializer.rb
embedded_associations-4.1.0 spec/support/app/app/serializers/post_serializer.rb
embedded_associations-4.0.0 spec/support/app/app/serializers/post_serializer.rb
embedded_associations-0.0.4 spec/support/app/app/serializers/post_serializer.rb
embedded_associations-0.0.3 spec/support/app/app/serializers/post_serializer.rb
embedded_associations-0.0.2 spec/support/app/app/serializers/post_serializer.rb
embedded_associations-0.0.1 spec/support/app/app/serializers/post_serializer.rb