Skip to content

Instantly share code, notes, and snippets.

View tmorton's full-sized avatar

Tim Morton tmorton

View GitHub Profile
class PaymentNotification < ActiveRecord::Base
belongs_to :cart
belongs_to :product
serialize :params
after_create :mark_cart_as_purchased, :update_qty
# after_create :send_mail
private