Class: WorldDb::Model::State
- Inherits:
-
Object
- Object
- WorldDb::Model::State
- Defined in:
- lib/worlddb/compat/state.rb
Overview
collect depreciated or methods for future removal here
- keep for now for commpatibility (for old code)
Instance Method Summary collapse
-
#by_title ⇒ Object
def title() name; end def title=(value) self.name = value; end.
-
#regions ⇒ Object
subregions.
-
#title_w_synonyms(opts = {}) ⇒ Object
def synonyms() alt_names; end def synonyms=(value) self.alt_names = value; end.
Instance Method Details
#by_title ⇒ Object
def title() name; end
def title=(value) self.name = value; end
15 |
# File 'lib/worlddb/compat/state.rb', line 15 scope :by_title, ->{ order( 'name asc' ) } |
#regions ⇒ Object
subregions
22 |
# File 'lib/worlddb/compat/state.rb', line 22 has_many :regions, class_name: 'State', foreign_key: 'state_id' |
#title_w_synonyms(opts = {}) ⇒ Object
def synonyms() alt_names; end
def synonyms=(value) self.alt_names = value; end
20 |
# File 'lib/worlddb/compat/state.rb', line 20 def title_w_synonyms( opts={} ) all_names( opts ); end |