]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Added user home lat and lon
[rails.git] / app / models / user.rb
index 780e0caafb8f9ca6dbae2f7c4779eae6114a3d6d..cd0623bc1a628591f8fe0865b964fabe44272f9f 100644 (file)
@@ -3,7 +3,8 @@ class User < ActiveRecord::Base
   require 'digest/md5'
 
   has_many :traces
-
+  has_many :diary_entries
   validates_confirmation_of :pass_crypt, :message => 'Password must match the confirmation password'
   validates_uniqueness_of :display_name, :allow_nil => true
   validates_uniqueness_of :email
@@ -56,4 +57,10 @@ class User < ActiveRecord::Base
     el1['account_created'] = self.creation_time.xmlschema
     return el1
   end
+  
+  def get_nearby_users
+  end
+
+
+  
 end