]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Added methods to strip those non-XML control characters from tags in AMF controller...
[rails.git] / app / models / user.rb
index 4f1e1f093c30be22c7aff1bff4e7f5ba23a80910..5625527bd14d4d31abc5978abd8a68f24aaada1c 100644 (file)
@@ -1,7 +1,7 @@
 class User < ActiveRecord::Base
   require 'xml/libxml'
 
-  has_many :traces
+  has_many :traces, :conditions => { :visible => true }
   has_many :diary_entries, :order => 'created_at DESC'
   has_many :messages, :foreign_key => :to_user_id, :conditions => { :to_user_visible => true }, :order => 'sent_on DESC'
   has_many :new_messages, :class_name => "Message", :foreign_key => :to_user_id, :conditions => { :message_read => false }, :order => 'sent_on DESC'