Skip to content

Instantly share code, notes, and snippets.

@whiz25
Last active January 14, 2020 09:45
Show Gist options
  • Save whiz25/cb3b0a9757f26912201e7fca06c9a5df to your computer and use it in GitHub Desktop.
Save whiz25/cb3b0a9757f26912201e7fca06c9a5df to your computer and use it in GitHub Desktop.
session store configuration
if Rails.env == "production"
Rails.application.config.session_store :cookie_store, key: "_authentication_app", domain: "https://link-to-your-production-app.com/"
else
Rails.application.config.session_store :cookie_store, key: "_authentication_app"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment