lib/mls/models/region.rb in mls-1.6.0 vs lib/mls/models/region.rb in mls-1.7.0
- old
+ new
@@ -13,9 +13,10 @@
belongs_to :flagship, :class_name => 'Region'
has_one :geometry, as: :subject
has_many :stats, as: :subject
+ has_and_belongs_to_many :tasks
has_and_belongs_to_many :organizations
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'
def name