Sha256: 162b7a3571c2cf15e5e788b6917f232c995a7f26f6a38098175a3e26b71a2378
Contents?: true
Size: 440 Bytes
Versions: 10
Compression:
Stored size: 440 Bytes
Contents
class PetroleumAdministrationForDefenseDistrict < ActiveRecord::Base self.primary_key = "code" self.table_name = :petroleum_districts def name str = "PAD District #{district_code} (#{district_name})" str << " Subdistrict #{district_code}#{subdistrict_code} (#{subdistrict_name})" if subdistrict_code str end col :code col :district_code col :district_name col :subdistrict_code col :subdistrict_name end
Version data entries
10 entries across 10 versions & 1 rubygems