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 9 10 |
# File 'lib/lodging/relationships.rb', line 4 def self.included(target) target.belongs_to :zip_code, :foreign_key => 'zip_code_name' target.belongs_to :state, :foreign_key => 'state_postal_abbreviation' target.belongs_to :country, :foreign_key => 'country_iso_3166_code' target.belongs_to :lodging_class, :foreign_key => 'lodging_class_name' target.belongs_to :property, :foreign_key => 'property_northstar_id', :class_name => 'LodgingProperty' end |