Loading app/helpers/conversations_helper.rb +4 −5 Original line number Diff line number Diff line Loading @@ -3,9 +3,8 @@ module ConversationsHelper def conversation_class(conversation, unread_count, selected_conversation_id) conv_class = unread_count > 0 ? "unread" : "" if selected_conversation_id && conversation.id == selected_conversation_id conv_class << "selected" end conv_class return conv_class unless selected_conversation_id && conversation.id == selected_conversation_id "#{conv_class} selected" end end Loading
app/helpers/conversations_helper.rb +4 −5 Original line number Diff line number Diff line Loading @@ -3,9 +3,8 @@ module ConversationsHelper def conversation_class(conversation, unread_count, selected_conversation_id) conv_class = unread_count > 0 ? "unread" : "" if selected_conversation_id && conversation.id == selected_conversation_id conv_class << "selected" end conv_class return conv_class unless selected_conversation_id && conversation.id == selected_conversation_id "#{conv_class} selected" end end