Sha256: a09584ec6276504779905c70a4bacc2f1459364ed53ae2c1d3ce8400694442a5
Contents?: true
Size: 432 Bytes
Versions: 19
Compression:
Stored size: 432 Bytes
Contents
class PetroleumAdministrationForDefenseDistrict < ActiveRecord::Base set_primary_key :code set_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
19 entries across 19 versions & 1 rubygems