lib/earth/locality/egrid_country.rb in earth-0.11.10 vs lib/earth/locality/egrid_country.rb in earth-0.11.11
- old
+ new
@@ -1,6 +1,6 @@
class EgridCountry < ActiveRecord::Base
- set_primary_key :name
+ self.primary_key = "name"
class << self
def us
find_by_name 'US'
end