Skip to content

Instantly share code, notes, and snippets.

@caffo
Created March 20, 2009 21:54
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 caffo/82601 to your computer and use it in GitHub Desktop.
Save caffo/82601 to your computer and use it in GitHub Desktop.
require 'activesupport'
require 'dispatcher'
module ActionController
class Dispatcher
def set_session_domain
ActionController::Base.session_options[:session_domain] = "#{@request.domain}"
end
before_dispatch :set_session_domain
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment