Class: WorldDb::Model::State

Inherits:
Object
  • Object
show all
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

Instance Method Details

#by_titleObject

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' ) }

#regionsObject

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