Sha256: f5214df231be6f71257939d7e32a2140199a56735dd5ec82168118c566e51c66
Contents?: true
Size: 740 Bytes
Versions: 4
Compression:
Stored size: 740 Bytes
Contents
### forward references ## require first to resolve circular references module SportDb::Models ## todo: why? why not use include WorldDb::Models here??? Country = WorldDb::Models::Country Region = WorldDb::Models::Region City = WorldDb::Models::City Prop = WorldDb::Models::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 end module WorldDb::Models # add alias? why? why not? # is there a better way? # - just include SportDB::Models - why? why not? # - just include once in loader?? Team = SportDb::Models::Team League = SportDb::Models::League end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sportdb-1.6.3 | lib/sportdb/models/forward.rb |
sportdb-1.6.2 | lib/sportdb/models/forward.rb |
sportdb-1.6.1 | lib/sportdb/models/forward.rb |
sportdb-1.6.0 | lib/sportdb/models/forward.rb |