public
Last active

2.3.x cookie header hack

  • Download Gist
environment.rb
Ruby
1 2 3 4 5 6 7 8 9 10
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

Thanks, a great help!

This saved my chunky bacon! Thanks!

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.