Sha256: bfa839a3d5742030683843b2b2b95d583b977df8f96246cabaa474e181769159

Contents?: true

Size: 207 Bytes

Versions: 2

Compression:

Stored size: 207 Bytes

Contents

require "category_with_subcategories_serializer"

class ProductWithCategorySerializer < ::ActiveModel::Serializer
  attributes :name
  has_one :category, :serializer => CategoryWithSubcategorySerializer
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trax_controller-1.0.0 spec/internal/app/serializers/product_with_category_serializer.rb
trax_controller-0.1.4 spec/internal/app/serializers/product_with_category_serializer.rb