Method: Discuss::Message#mailbox
- Defined in:
- app/models/discuss/message.rb
#mailbox ⇒ Object
66 67 68 69 70 71 72 73 74 75 |
# File 'app/models/discuss/message.rb', line 66 def mailbox case when sent? then :outbox when received? then :inbox when !new_record? && unsent? then :drafts when trashed? then :trash else :compose end end |