Project

General

Profile

Defect #7857 » rails_6440_patch.rb

Dmitry Salashnik, 2011-06-14 08:08

 
1
# file config/initializers/rails_6440_patch.rb
2
ActionController::Request.class_eval do
3
    def reset_session
4
      # session may be a hash, if so, we do not want to call destroy
5
      # fixes issue 6440
6
      session.destroy if session and session.respond_to?(:destroy)
7
      self.session = {}
8
    end
9
end
(2-2/2)