Project

General

Profile

NameError in AccountController#login undefined local... » rails_6440_patch.rb

shivaranjani v, 2012-07-19 14:01

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