Guest User

Untitled

a guest
May 27th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1.  
  2.  
  3. class Inventory
  4. has_many :items
  5. def produce(input_manifest,output_manifest)
  6. transaction do
  7. old_items = pick_items(input_manifest)
  8. new_items = output_manifest.to_i
  9. old_items.destroy
  10. items << new_items
  11. end
  12. end
  13. end
Add Comment
Please, Sign In to add comment