Browse files

Accepting, for now, that associations still require dealing with the …

…Repositories.
  • Loading branch information...
1 parent ed688ba commit f3320d6f040b8bd33ce93864ae1611fb3e9090cf @elight committed Mar 15, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 spec/test_data.rb
View
3 spec/test_data.rb
@@ -46,6 +46,9 @@ class ItemData < ActiveRecord::Base
# STEP2: Define domain objects
# --------------------------------------------------
class Order
+ def add_item attrs
+ repository.create_item self, attrs
+ end
end
class Item

0 comments on commit f3320d6

Please sign in to comment.