Sha256: a8f46a8e5c49397fb34124210e4fd5b2a37b5bda31823e3d3bc3c9b7c32f46e7
Contents?: true
Size: 315 Bytes
Versions: 2
Compression:
Stored size: 315 Bytes
Contents
# encoding: utf-8 ## todo: how to best extends country model? module WorldDb::Model class Region has_many :teams, class_name: 'SportDb::Model::Team', :through => :cities has_many :grounds, class_name: 'SportDb::Model::Ground', :through => :cities end # class Region end # module WorldDb::Model
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sportdb-1.8.3 | lib/sportdb/models/world/region.rb |
sportdb-1.8.2 | lib/sportdb/models/world/region.rb |