Sha256: bf906689b403e7b6cfaa1209448242cf9bb92a0f8a3dd4e37c183886144adf81
Contents?: true
Size: 561 Bytes
Versions: 1
Compression:
Stored size: 561 Bytes
Contents
module BrighterPlanet module Lodging module Relationships 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lodging-0.0.13 | lib/lodging/relationships.rb |