Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Morton tmorton

  • Washington, DC
View GitHub Profile
View payment_notification.rb
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