Sha256: a69f5e5ed9b3132dc738ef1aae1c610f86aae32b933049964b29f9fdc11205c6

Contents?: true

Size: 613 Bytes

Versions: 6

Compression:

Stored size: 613 Bytes

Contents

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

module BeerDb::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

  Tag       = WorldDb::Models::Tag
  Tagging   = WorldDb::Models::Tagging

  Prop      = WorldDb::Models::Prop

  class Beer < ActiveRecord::Base ; end
  class Brewery < ActiveRecord::Base ; end

end


module WorldDb::Models

  Beer    = BeerDb::Models::Beer
  Brewery = BeerDb::Models::Brewery

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
beerdb-0.5.2 lib/beerdb/models/forward.rb
beerdb-0.5.1 lib/beerdb/models/forward.rb
beerdb-0.5.0 lib/beerdb/models/forward.rb
beerdb-0.4.0 lib/beerdb/models/forward.rb
beerdb-0.3.0 lib/beerdb/models/forward.rb
beerdb-0.2.0 lib/beerdb/models/forward.rb