Guest User

Untitled

a guest
Jul 20th, 2018
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def update_applied_giftcards
  2. giftcards_applied = giftcard_applications.collect(&:giftcard)
  3. giftcard_applications.destroy_all
  4. giftcards_applied.each do |gc|
  5. self.apply_giftcard(gc)
  6. break if total <= 0.00
  7. end
  8. end
RAW Paste Data