Make the name of the lon/lng virtual attribute on trace points consistent.

This commit is contained in:
Tom Hughes 2007-09-28 23:19:19 +00:00
parent e7d834625c
commit 6595f97c53
2 changed files with 2 additions and 2 deletions

View file

@ -190,7 +190,7 @@ class Trace < ActiveRecord::Base
tp = Tracepoint.new
tp.lat = point['latitude'].to_f
tp.lng = point['longitude'].to_f
tp.lon = point['longitude'].to_f
tp.altitude = point['altitude'].to_f
tp.timestamp = point['timestamp']
tp.gpx_id = id

View 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