Module: ConversationsHelper
- Included in:
- Api::V1::ConversationsController
- Defined in:
- app/helpers/conversations_helper.rb
Instance Method Summary collapse
Instance Method Details
#conversation_class(conversation, unread_count, selected_conversation_id) ⇒ Object
4 5 6 7 8 9 |
# File 'app/helpers/conversations_helper.rb', line 4 def conversation_class(conversation, unread_count, selected_conversation_id) conv_class = unread_count > 0 ? "unread" : "" return conv_class unless selected_conversation_id && conversation.id == selected_conversation_id "#{conv_class} selected" end |