Sha256: 072c4c070c8fb847e13a4c086b423b02a70347b284bc0555af6484c545ec2ca7

Contents?: true

Size: 355 Bytes

Versions: 30

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

30 entries across 30 versions & 1 rubygems

Version Path
sportdb-1.8.0 lib/sportdb/models/region.rb
sportdb-1.7.9 lib/sportdb/models/region.rb
sportdb-1.7.8 lib/sportdb/models/region.rb
sportdb-1.7.7 lib/sportdb/models/region.rb
sportdb-1.7.6 lib/sportdb/models/region.rb
sportdb-1.7.5 lib/sportdb/models/region.rb
sportdb-1.7.4 lib/sportdb/models/region.rb
sportdb-1.7.3 lib/sportdb/models/region.rb
sportdb-1.7.2 lib/sportdb/models/region.rb
sportdb-1.7.1 lib/sportdb/models/region.rb
sportdb-1.7.0 lib/sportdb/models/region.rb
sportdb-1.6.18 lib/sportdb/models/region.rb
sportdb-1.6.17 lib/sportdb/models/region.rb
sportdb-1.6.16 lib/sportdb/models/region.rb
sportdb-1.6.15 lib/sportdb/models/region.rb
sportdb-1.6.14 lib/sportdb/models/region.rb
sportdb-1.6.13 lib/sportdb/models/region.rb
sportdb-1.6.12 lib/sportdb/models/region.rb
sportdb-1.6.11 lib/sportdb/models/region.rb
sportdb-1.6.10 lib/sportdb/models/region.rb