Skip to content

Instantly share code, notes, and snippets.

@stuartbain
Created October 30, 2013 16:01
Show Gist options
  • Save stuartbain/7235213 to your computer and use it in GitHub Desktop.
Save stuartbain/7235213 to your computer and use it in GitHub Desktop.
Configure session store domain by Rails environment
MyApp::Application.config.session_store :cookie_store, key: '_my_app_session', domain: {
production: '.example.com',
development: '.example.dev'
}.fetch(Rails.env.to_sym, :all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment