Sha256: bcbb34b17717ed9054168f8a73b9e9a338b24f451a9bae7529f0eb8ef3f0d675
Contents?: true
Size: 494 Bytes
Versions: 6
Compression:
Stored size: 494 Bytes
Contents
class Region < MLS::Model include MLS::Slugger self.inheritance_column = 'inheritance_type' belongs_to :cover_photo, :class_name => 'Photo' has_and_belongs_to_many :parents, :join_table => 'regions_regions', :class_name => 'Region', :foreign_key => 'child_id', :association_foreign_key => 'parent_id' has_and_belongs_to_many :children, :join_table => 'regions_regions', :class_name => 'Region', :foreign_key => 'parent_id', :association_foreign_key => 'child_id' end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
mls-1.1.4 | lib/mls/region.rb |
mls-1.1.3 | lib/mls/region.rb |
mls-1.1.2 | lib/mls/region.rb |
mls-1.1.1 | lib/mls/region.rb |
mls-1.1.0 | lib/mls/region.rb |
mls-1.0.0 | lib/mls/region.rb |