Skip to content

Instantly share code, notes, and snippets.

@sikachu
Created June 24, 2010 19:09
Show Gist options
  • Save sikachu/451824 to your computer and use it in GitHub Desktop.
Save sikachu/451824 to your computer and use it in GitHub Desktop.
def set_cookie(request, options)
if request.cookie_jar[@key] != options[:value] || !options[:expires].nil?
request.cookie_jar[@key] = options
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment