Skip to content

Instantly share code, notes, and snippets.

@jimmybaker
Created February 18, 2010 22:12
Show Gist options
  • Save jimmybaker/308132 to your computer and use it in GitHub Desktop.
Save jimmybaker/308132 to your computer and use it in GitHub Desktop.
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