Sha256: 60ea024c1aed61aa62a88972f9db678498a5d590d6ae5a4ffc13fdcee3ce9a37

Contents?: true

Size: 762 Bytes

Versions: 5

Compression:

Stored size: 762 Bytes

Contents

### forward references
##   require first to resolve circular references

module SportDB ; end

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

5 entries across 5 versions & 1 rubygems

Version Path
sportdb-0.8.1 lib/sportdb/models/forward.rb
sportdb-0.8.0 lib/sportdb/models/forward.rb
sportdb-0.7.2 lib/sportdb/models/forward.rb
sportdb-0.7.1 lib/sportdb/models/forward.rb
sportdb-0.7.0 lib/sportdb/models/forward.rb