Sha256: 4e77bfeb2adeefa1330ea9ceeaf143a16f1b954bc3e70ee5f0ac0553eb383b1e
Contents?: true
Size: 856 Bytes
Versions: 4
Compression:
Stored size: 856 Bytes
Contents
### forward references ## require first to resolve circular references module SportDb::Model ## todo: why? why not use include WorldDb::Models here??? Continent = WorldDb::Model::Continent Country = WorldDb::Model::Country Region = WorldDb::Model::Region City = WorldDb::Model::City Prop = WorldDb::Model::Prop ## nb: for now only team and league use worlddb tables # e.g. with belongs_to assoc (country,region) class Team < ActiveRecord::Base ; end class League < ActiveRecord::Base ; end class Ground < ActiveRecord::Base ; end end module WorldDb::Model # add alias? why? why not? # is there a better way? # - just include SportDb::Models - why? why not? # - just include once in loader?? Team = SportDb::Model::Team League = SportDb::Model::League Ground = SportDb::Model::Ground end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sportdb-1.8.6 | lib/sportdb/models/forward.rb |
sportdb-1.8.5 | lib/sportdb/models/forward.rb |
sportdb-1.8.3 | lib/sportdb/models/forward.rb |
sportdb-1.8.2 | lib/sportdb/models/forward.rb |