lib/earth/locality/zip_code.rb in earth-0.11.10 vs lib/earth/locality/zip_code.rb in earth-0.11.11

- old
+ new

@@ -1,8 +1,8 @@ require ::File.join(Earth.vendor_dir, 'geokit-rails', 'lib', 'geokit-rails') class ZipCode < ActiveRecord::Base - set_primary_key :name + self.primary_key = "name" belongs_to :egrid_subregion, :foreign_key => 'egrid_subregion_abbreviation' belongs_to :climate_division, :foreign_key => 'climate_division_name' belongs_to :state, :foreign_key => 'state_postal_abbreviation'