Skip to content

Instantly share code, notes, and snippets.

@domagude
Last active November 15, 2017 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domagude/df91111b1b5a5d943536ff08cd069992 to your computer and use it in GitHub Desktop.
Save domagude/df91111b1b5a5d943536ff08cd069992 to your computer and use it in GitHub Desktop.
...
# if the conversation has unshown messages, show a button to get them
def load_private_messages(conversation)
if conversation.messages.count > 0
'private/conversations/conversation/messages_list/link_to_previous_messages'
else
'shared/empty_partial'
end
end
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment