Method: Thredded::ApplicationHelper#unread_private_topics_count
- Defined in:
- app/helpers/thredded/application_helper.rb
#unread_private_topics_count ⇒ Object
107 108 109 110 111 112 113 114 115 116 117 |
# File 'app/helpers/thredded/application_helper.rb', line 107 def unread_private_topics_count @unread_private_topics_count ||= if thredded_signed_in? Thredded::PrivateTopic .for_user(thredded_current_user) .unread(thredded_current_user) .count else 0 end end |