Sha256: b085c2a856fdff29e65bd56894924bd7639fcf42c15cdc47bb849c4cda0d00fc

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

class Region < MLS::Model
  
  include MLS::Slugger
  
  self.inheritance_column = nil

  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

3 entries across 3 versions & 1 rubygems

Version Path
mls-1.4.0 lib/mls/region.rb
mls-1.3.0 lib/mls/region.rb
mls-1.2.0 lib/mls/region.rb