]> git.openstreetmap.org Git - rails.git/blobdiff - lib/country.rb
Use redactions factory for old_node controller tests.
[rails.git] / lib / country.rb
index 16eec1a36af22352230a93fc0b7701cce54ed51d..3af7e0a211cb70e358c9ade41eeead922d009838 100644 (file)
@@ -9,12 +9,12 @@ class Country
     @max_lon = max_lon
   end
 
-  def self.find_by_code(code)
+  def self.find(code)
     countries[code]
   end
 
   def self.countries
-    @@countries ||= load_countries
+    @countries ||= load_countries
   end
 
   def self.load_countries