Sha256: f355ba2c0207b7675118bda20aedf763c380a9c257f86bfef87a97cfd720e182

Contents?: true

Size: 1.09 KB

Versions: 17

Compression:

Stored size: 1.09 KB

Contents

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

module SportDb
  module Model

  Prop      = ConfDb::Model::Prop

  ## 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

  Person    = PersonDb::Model::Person

  ## nb: for now only team and league use worlddb tables
  #   e.g. with belongs_to assoc (country,region)

  class Assoc  < ActiveRecord::Base ; end
  class Team < ActiveRecord::Base ; end
  class League < ActiveRecord::Base ; end
  class Ground < ActiveRecord::Base ; end
  class Goal  < ActiveRecord::Base ; end

  end
end


module WorldDb
  module Model

  # add alias? why? why not? # is there a better way?
  #  - just include SportDb::Models  - why? why not?
  #  - just include once in loader??
  Assoc  = SportDb::Model::Assoc
  Team   = SportDb::Model::Team
  League = SportDb::Model::League
  Ground = SportDb::Model::Ground

  end
end


module PersonDb
  module Model
    Goal  = SportDb::Model::Goal
  end
end


Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sportdb-1.9.15 lib/sportdb/models/forward.rb
sportdb-1.9.14 lib/sportdb/models/forward.rb
sportdb-1.9.13 lib/sportdb/models/forward.rb
sportdb-1.9.12 lib/sportdb/models/forward.rb
sportdb-1.9.11 lib/sportdb/models/forward.rb
sportdb-1.9.10 lib/sportdb/models/forward.rb
sportdb-1.9.9 lib/sportdb/models/forward.rb
sportdb-1.9.8 lib/sportdb/models/forward.rb
sportdb-1.9.7 lib/sportdb/models/forward.rb
sportdb-1.9.6 lib/sportdb/models/forward.rb
sportdb-1.9.5 lib/sportdb/models/forward.rb
sportdb-1.9.4 lib/sportdb/models/forward.rb
sportdb-1.9.3 lib/sportdb/models/forward.rb
sportdb-1.9.2 lib/sportdb/models/forward.rb
sportdb-1.9.1 lib/sportdb/models/forward.rb
sportdb-1.9.0 lib/sportdb/models/forward.rb
sportdb-1.8.29 lib/sportdb/models/forward.rb