Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update_applied_giftcards
- giftcards_applied = giftcard_applications.collect(&:giftcard)
- giftcard_applications.destroy_all
- giftcards_applied.each do |gc|
- self.apply_giftcard(gc)
- break if total <= 0.00
- end
- end
Add Comment
Please, Sign In to add comment