Sha256: 46cc5f52b6ff1d884b000b13536857c8025ae40310b02343a6d62ecaca71303f

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

# encoding: utf-8


module WorldDb
  module Model

  class State
    has_many :teams,          class_name: 'SportDb::Model::Team',   :through => :cities

    # fix: require active record 4
    # has_many :clubs,          class_name: 'SportDb::Model::Team',   :through => :cities
    # has_many :national_teams, class_name: 'SportDb::Model::Team',   :through => :cities

    has_many :grounds, class_name: 'SportDb::Model::Ground', :through => :cities
  end # class State

  end # module Model
end # module WorldDb

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sportdb-models-2.0.3 lib/sportdb/models/models/world/state.rb