gpx import now fully works
This commit is contained in:
parent
f1189ae115
commit
4434bac3b4
5 changed files with 13 additions and 12 deletions
|
@ -1,8 +1,8 @@
|
|||
class Trace < ActiveRecord::Base
|
||||
set_table_name 'gpx_files'
|
||||
|
||||
validates_presence_of :user_id, :name, :public, :description, :tmpname, :timestamp
|
||||
validates_numericality_of :latitude, :longitude
|
||||
validates_presence_of :user_id, :name, :public, :description, :timestamp
|
||||
# validates_numericality_of :latitude, :longitude
|
||||
validates_inclusion_of :inserted, :in => [ true, false]
|
||||
|
||||
belongs_to :user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue