Skip to content

Instantly share code, notes, and snippets.

@agibralter
Created June 9, 2010 17:06
Show Gist options
  • Save agibralter/431811 to your computer and use it in GitHub Desktop.
Save agibralter/431811 to your computer and use it in GitHub Desktop.
2.3.x cookie header hack
RAILS_GEM_VERSION = '2.3.8' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
# ...
config.after_initialize do
ActionController::Dispatcher.middleware.insert_before(ActionController::Base.session_store, RackRailsCookieHeaderHack)
end
end
@grosser
Copy link

grosser commented Sep 16, 2010

Thanks, a great help!

@agibralter
Copy link
Author

Glad it helped!

@kirk
Copy link

kirk commented Oct 16, 2010

This saved my chunky bacon! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment