jam-cloud/ruby/lib/jam_ruby/models/city.rb

11 lines
220 B
Ruby

module JamRuby
class City < ApplicationRecord
self.table_name = 'cities'
def self.get_all(country, region)
self.where(countrycode: country).where(region: region).order('city asc').all
end
end
end