]> git.openstreetmap.org Git - rails.git/blobdiff - lib/country.rb
Remove minitest-rails-capybara and convert feature tests to system tests
[rails.git] / lib / country.rb
index 41e36ccecfcbf8b9322fcf71298bef05ba801523..3af7e0a211cb70e358c9ade41eeead922d009838 100644 (file)
@@ -9,14 +9,12 @@ class Country
     @max_lon = max_lon
   end
 
-  def self.find_by_code(code)
+  def self.find(code)
     countries[code]
   end
 
-  private
-
   def self.countries
-    @@countries ||= load_countries
+    @countries ||= load_countries
   end
 
   def self.load_countries