Class: Cats::Core::CommodityCategorySerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/cats/core/commodity_category_serializer.rb

Instance Method Summary collapse

Instance Method Details

#leafObject



6
7
8
# File 'app/serializers/cats/core/commodity_category_serializer.rb', line 6

def leaf
  !object.has_children?
end