Class: ChinaCity

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/generators/china/templates/china_city.rb

Class Method Summary collapse

Class Method Details

.provincesObject



4
5
6
# File 'lib/generators/china/templates/china_city.rb', line 4

def provinces
  ChinaCity.where(level: 1)
end