Module: BrighterPlanet::Purchase::Relationships

Defined in:
lib/purchase/relationships.rb

Class Method Summary collapse

Class Method Details

.included(target) ⇒ Object



4
5
6
7
8
# File 'lib/purchase/relationships.rb', line 4

def self.included(target)
  target.belongs_to :merchant,          :foreign_key => 'merchant_id'
  target.belongs_to :merchant_category, :foreign_key => 'mcc'
  target.belongs_to :industry,          :foreign_key => 'naics_code'
end