Skip to content

Instantly share code, notes, and snippets.

@tbprojects
Last active December 28, 2015 07:19
Show Gist options
  • Save tbprojects/7463921 to your computer and use it in GitHub Desktop.
Save tbprojects/7463921 to your computer and use it in GitHub Desktop.
def send_changes(bid_id)
tender_diff = {label: 'Voice of Poland', name: ['Voice of Poland', 'X-Factor'], currency: ['EUR', 'PLN']}
item_diffs = [{label: 'Golf Ball', name: ['Golf Ball', 'Football Ball'], quantity: [4,5]},{label: 'Chess Board', name: ['Chess
Board', 'Agile Board']}]
diffs = {tender_diff: tender_diff, item_diffs: item_diffs}
EmailDelivery.deliver bid_id, diffs, {action: 'tender_changed_for_supplier'}
end
send_changes(bid_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment