kinduff/spree_reffiliate

View on GitHub
app/models/spree/referred_record.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Spree
  class ReferredRecord < Spree::Base
    belongs_to :referral
    belongs_to :user, class_name: Spree.user_class.to_s
    belongs_to :affiliate

    validates_presence_of :user
  end
end