Class: WorldDb::Model::Place
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- WorldDb::Model::Place
- Defined in:
- lib/worlddb/models/place.rb,
lib/worlddb/models/forward.rb
Instance Method Summary collapse
-
#state ⇒ Object
todo: depending on type has_one continent, country, state, city etc.
Instance Method Details
#state ⇒ Object
todo: depending on type
has_one continent, country, state, city etc.
10 |
# File 'lib/worlddb/models/place.rb', line 10 has_one :state, class_name: 'State', foreign_key: 'place_id' |