Skip to content

Commit

Permalink
Ignore deleted traces when returning a user's traces. Fixes openstree…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jul 23, 2009
1 parent 581c243 commit 70cf737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 70cf737

Please sign in to comment.