Class: WorldDb::Model::City

Inherits:
Object
  • Object
show all
Defined in:
lib/worlddb/compat/city.rb

Overview

collect depreciated or methods for future removal here

- keep for now for commpatibility (for old code)

Instance Method Summary collapse

Instance Method Details

#by_titleObject

def title() name; end

def title=(value) self.name = value; end


15
# File 'lib/worlddb/compat/city.rb', line 15

scope :by_title, ->{ order( 'name asc' ) }

#title_w_synonyms(opts = {}) ⇒ Object

def synonyms() alt_names; end

def synonyms=(value) self.alt_names = value; end


21
# File 'lib/worlddb/compat/city.rb', line 21

def title_w_synonyms( opts={} )  all_names( opts );  end