Sha256: d4d430e429bfcb2d6a1dda48eb2db96a063d5f4179794de4e5654034c3b10512

Contents?: true

Size: 515 Bytes

Versions: 25

Compression:

Stored size: 515 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

25 entries across 25 versions & 1 rubygems

Version Path
sportdb-models-2.1.0 lib/sportdb/models/models/world/state.rb
sportdb-models-2.0.2 lib/sportdb/models/models/world/state.rb
sportdb-models-2.0.1 lib/sportdb/models/models/world/state.rb
sportdb-models-2.0.0 lib/sportdb/models/models/world/state.rb
sportdb-models-1.19.1 lib/sportdb/models/world/state.rb
sportdb-models-1.19.0 lib/sportdb/models/world/state.rb
sportdb-models-1.18.6 lib/sportdb/models/world/state.rb
sportdb-models-1.18.5 lib/sportdb/models/world/state.rb
sportdb-models-1.18.4 lib/sportdb/models/world/state.rb
sportdb-models-1.18.3 lib/sportdb/models/world/state.rb
sportdb-models-1.18.2 lib/sportdb/models/world/state.rb
sportdb-models-1.18.1 lib/sportdb/models/world/state.rb
sportdb-models-1.18.0 lib/sportdb/models/world/state.rb
sportdb-models-1.17.0 lib/sportdb/models/world/state.rb
sportdb-models-1.16.2 lib/sportdb/models/world/state.rb
sportdb-models-1.16.1 lib/sportdb/models/world/state.rb
sportdb-models-1.16.0 lib/sportdb/models/world/state.rb
sportdb-models-1.15.2 lib/sportdb/models/world/state.rb
sportdb-models-1.15.1 lib/sportdb/models/world/state.rb
sportdb-models-1.15.0 lib/sportdb/models/world/state.rb