app/models/message.rb
# Return true if the message has been trashed.
Return true if the message has been trashed.
Return true if the message has been trashed .
def trashed?(user)
    case user
    when sender
      !sender_deleted_at.nil? and sender_deleted_at > User::TRASH_TIME_AGO
    when recipient
      !recipient_deleted_at.nil? and 
       recipient_deleted_at > User::TRASH_TIME_AGO
    end
  end
def trashed? ( user ) case user when sender ! sender_deleted_at . nil? and sender_deleted_at > User :: TRASH_TIME_AGO when recipient ! recipient_deleted_at . nil? and recipient_deleted_at > User :: TRASH_TIME_AGO end end
Return true if the message has been trashed.
Return true if the message has been trashed .
user
<not_specific>