Fix ConversationsHelper#conversation_class with frozen strings
This commit is contained in:
parent
79c2db65d7
commit
1b30508c19
1 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue