Sha256: 3affc3f46c9fca12d85fbfacda23c2d186c2b712e678a412132e1726dc8e42f9
Contents?: true
Size: 485 Bytes
Versions: 30
Compression:
Stored size: 485 Bytes
Contents
# encoding: utf-8 ## todo: how to best extends country model? module WorldDb::Models class Country has_many :teams, :class_name => 'SportDb::Models::Team', :foreign_key => 'country_id' has_many :leagues, :class_name => 'SportDb::Models::League', :foreign_key => 'country_id' end # class Country end # module WorldDb::Models ## moved to models/forward # module SportDb::Models # Country = WorldDb::Models::Country # end # module SportDb::Models
Version data entries
30 entries across 30 versions & 1 rubygems