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

Version Path
sportdb-1.6.18 lib/sportdb/models/forward.rb
sportdb-1.6.17 lib/sportdb/models/forward.rb
sportdb-1.6.16 lib/sportdb/models/forward.rb
sportdb-1.6.15 lib/sportdb/models/forward.rb
sportdb-1.6.14 lib/sportdb/models/forward.rb
sportdb-1.6.13 lib/sportdb/models/forward.rb
sportdb-1.6.12 lib/sportdb/models/forward.rb
sportdb-1.6.11 lib/sportdb/models/forward.rb
sportdb-1.6.10 lib/sportdb/models/forward.rb
sportdb-1.6.9 lib/sportdb/models/forward.rb
sportdb-1.6.8 lib/sportdb/models/forward.rb
sportdb-1.6.7 lib/sportdb/models/forward.rb
sportdb-1.6.6 lib/sportdb/models/forward.rb
sportdb-1.6.5 lib/sportdb/models/forward.rb
sportdb-1.6.4 lib/sportdb/models/forward.rb