Created
February 18, 2010 22:12
-
-
Save jimmybaker/308132 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def check_for_bid_items | |
return if user.bids.empty? | |
@bids_and_items = {} | |
bitems = [] | |
user.bids.each do |bid| | |
@bids_and_items[bid] = [] | |
line_items.each do |li| | |
@bids_and_items[bid] << li if li.product.bids.include?(bid) | |
end | |
end | |
# send an email with items from each bid.. | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment