Sha256: 3affc3f46c9fca12d85fbfacda23c2d186c2b712e678a412132e1726dc8e42f9

Contents?: true

Size: 485 Bytes

Versions: 30

Compression:

Stored size: 485 Bytes

Contents

# encoding: utf-8

## todo: how to best extends country model?

module WorldDb::Models

  class Country
    has_many :teams,   :class_name => 'SportDb::Models::Team',   :foreign_key => 'country_id'
    has_many :leagues, :class_name => 'SportDb::Models::League', :foreign_key => 'country_id'
  end # class Country

end # module WorldDb::Models


## moved to models/forward
# module SportDb::Models
#  Country = WorldDb::Models::Country
# end # module SportDb::Models

Version data entries

30 entries across 30 versions & 1 rubygems

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