Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Inventory
- has_many :items
- def produce(input_manifest,output_manifest)
- transaction do
- old_items = pick_items(input_manifest)
- new_items = output_manifest.to_i
- old_items.destroy
- items << new_items
- end
- end
- end
Add Comment
Please, Sign In to add comment