Sha256: 11229e9b40156e8f3a5cbc55b8105545ec479252944b02e9298f2f5d8dd5e8be

Contents?: true

Size: 355 Bytes

Versions: 21

Compression:

Stored size: 355 Bytes

Contents

# encoding: utf-8

## todo: how to best extends country model?

module WorldDB::Models

  class Region
    has_many :teams, :class_name => 'SportDB::Models::Team', :through => :cities
  end # class Region

end # module WorldDB::Models

## moved to models/forward
# module SportDB::Models
#  Region = WorldDB::Models::Region
# end # module SportDB::Models

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
sportdb-1.5.0 lib/sportdb/models/region.rb
sportdb-1.4.2 lib/sportdb/models/region.rb
sportdb-1.4.1 lib/sportdb/models/region.rb
sportdb-1.4.0 lib/sportdb/models/region.rb
sportdb-1.3.0 lib/sportdb/models/region.rb
sportdb-1.2.0 lib/sportdb/models/region.rb
sportdb-1.1.0 lib/sportdb/models/region.rb
sportdb-1.0.1 lib/sportdb/models/region.rb
sportdb-1.0.0 lib/sportdb/models/region.rb
sportdb-0.9.7 lib/sportdb/models/region.rb
sportdb-0.9.6 lib/sportdb/models/region.rb
sportdb-0.9.5 lib/sportdb/models/region.rb
sportdb-0.9.4 lib/sportdb/models/region.rb
sportdb-0.9.3 lib/sportdb/models/region.rb
sportdb-0.9.2 lib/sportdb/models/region.rb
sportdb-0.9.1 lib/sportdb/models/region.rb
sportdb-0.9.0 lib/sportdb/models/region.rb
sportdb-0.8.1 lib/sportdb/models/region.rb
sportdb-0.8.0 lib/sportdb/models/region.rb
sportdb-0.7.2 lib/sportdb/models/region.rb