I use two instance variables like bellow in the view:
@conversations_user = Conversation.user(current_user.id)
@conversations_professional = Conversation.professional(professional.user.id)
I need to combine these two variables into one @conversation_all
, and later order them by the time of the last message.
Is it possible to combine @conversation_user
and @conversation_professional
into @conversation_all
?