Module: BrighterPlanet::Lodging::Relationships

Defined in:
lib/lodging/relationships.rb

Class Method Summary collapse

Class Method Details

.included(target) ⇒ Object



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

def self.included(target)
  target.belongs_to :lodging_class, :foreign_key => 'lodging_class_name'
  target.belongs_to :zip_code,      :foreign_key => 'zip_code_name'
  target.belongs_to :state,         :foreign_key => 'state_postal_abbreviation'
end