Skip to content

Instantly share code, notes, and snippets.

@domagude
Created November 13, 2017 17:04
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/0a3dc7f629c61f0e98210805167683c5 to your computer and use it in GitHub Desktop.
Save domagude/0a3dc7f629c61f0e98210805167683c5 to your computer and use it in GitHub Desktop.
...
private
def add_to_conversations
session[:private_conversations] ||= []
session[:private_conversations] << @conversation.id
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment