Sha256: 3b851ddcc2ec3b9a1905277bf0ea6a3ca48a594708ea6cabff1908aabf3c2552
Contents?: true
Size: 789 Bytes
Versions: 15
Compression:
Stored size: 789 Bytes
Contents
### forward references ## require first to resolve circular references module SportDb::Models ## todo: why? why not use include WorldDb::Models here??? Continent = WorldDb::Models::Continent 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
15 entries across 15 versions & 1 rubygems