Make the name of the lon/lng virtual attribute on trace points consistent.
[rails.git] / app / models / tracepoint.rb
index e0fcfbd9775858b48c5daf9b9d4a0959d6f3f215..1d9f1bd6bf5e57e24188a0ea83b1e724dc834c2a 100644 (file)
@@ -25,7 +25,7 @@ class Tracepoint < ActiveRecord::Base
     self.latitude = (l * 10000000).round
   end
 
-  def lng=(l)
+  def lon=(l)
     self.longitude = (l * 10000000).round
   end