lib/sportdb/models/world/country.rb in sportdb-1.8.6 vs lib/sportdb/models/world/country.rb in sportdb-1.8.7
- old
+ new
@@ -1,8 +1,9 @@
# encoding: utf-8
-module WorldDb::Model
+module WorldDb
+ module Model
class Country
has_many :teams, class_name: 'SportDb::Model::Team', foreign_key: 'country_id'
# fix: require active record 4
@@ -11,7 +12,7 @@
has_many :leagues, class_name: 'SportDb::Model::League', foreign_key: 'country_id'
has_many :grounds, class_name: 'SportDb::Model::Ground', foreign_key: 'country_id'
end # class Country
-end # module WorldDb::Model
-
+ end # module Model
+end # module WorldDb