Commit 1b30508c authored by Benjamin Neff's avatar Benjamin Neff

Fix ConversationsHelper#conversation_class with frozen strings

parent 79c2db65
......@@ -2,10 +2,9 @@
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
conv_class = unread_count > 0 ? "unread" : ""
return conv_class unless selected_conversation_id && conversation.id == selected_conversation_id
"#{conv_class} selected"
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment