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