Guest User

Untitled

a guest
Jul 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment