Method: Alchemy::ElementEditor#ingredients
- Defined in:
- app/decorators/alchemy/element_editor.rb
#ingredients ⇒ Object
Returns ingredient editor instances for defined ingredients
Creates ingredient on demand if the ingredient is not yet present on the element
16 17 18 19 20 |
# File 'app/decorators/alchemy/element_editor.rb', line 16 def ingredients ingredient_definitions.map do |ingredient| Alchemy::IngredientEditor.new(find_or_create_ingredient(ingredient)) end end |