Class: Alchemy::ElementSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/alchemy/element_serializer.rb

Instance Method Summary collapse

Instance Method Details

#ingredientsObject



16
17
18
# File 'app/serializers/alchemy/element_serializer.rb', line 16

def ingredients
  object.contents.collect(&:serialize)
end