Ignore deleted traces when returning a user's traces. Fixes #2093.
This commit is contained in:
parent
581c243e0e
commit
70cf737626
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue