Skip to content
Browse files

Add ingredients to seeds.

  • Loading branch information...
1 parent c6c39d3 commit ff678939db7f39375713c05fc160ed54ebc04b8b @alloy committed Aug 9, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 examples/Recipes/app/app_delegate.rb
View
5 examples/Recipes/app/app_delegate.rb
@@ -37,6 +37,11 @@ def loadSeeds
)
recipe.type = RecipeType.new(:name => 'Fast-food')
recipe.image = Image.new(:image => UIImage.imageNamed('fries.jpg'))
+ [{ :name => 'Potatoes', :amount => '1 KG' }, { :name => 'Mayonnaise', :amount => '1 jar' }].each_with_index do |ingredient, index|
+ # TODO
+ #recipe.ingredients.new(ingredient.merge(:displayOrder => index))
+ recipe.addIngredientsObject(Ingredient.new(ingredient.merge(:displayOrder => index)))
+ end
end
def setupCoreDataStack

0 comments on commit ff67893

Please sign in to comment.
Something went wrong with that request. Please try again.