Skip to content

Instantly share code, notes, and snippets.

View abcreddy's full-sized avatar

Bharath Reddy abcreddy

  • Tesco HSC
  • Bangalore, India
View GitHub Profile
# patch for Rails 2.3.9 (ticket #5581)
# (drop in your config/initializers/ dir)
affected = %w[ActiveRecord::SessionStore ActionController::Session::MemCacheStore]
target = Rails.configuration.middleware.detect do |mid|
mid.klass.is_a? Class and affected.include? mid.klass.to_s
end
if target
class RailsCookieMonster