]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/concerns/geo_record.rb
Merge remote-tracking branch 'upstream/pull/4753'
[rails.git] / app / models / concerns / geo_record.rb
index a5635c1729b2610442df10a8019f30f2ad614029..bd96e0ff33261630e848d65a20926c8b7857a233 100644 (file)
@@ -5,15 +5,11 @@ module GeoRecord
   # and not e.g. 4.0e-05
   # Unfortunately you can't extend Numeric classes directly (e.g. `Coord < Float`).
   class Coord < DelegateClass(Float)
-    def initialize(obj)
-      super(obj)
-    end
-
     def to_s
       format("%<coord>.7f", :coord => self)
     end
 
-    def as_json(_)
+    def as_json(*)
       format("%<coord>.7f", :coord => self).to_f
     end
   end