]> git.openstreetmap.org Git - rails.git/commit
Ignore exceptions clearing sessions
authorTom Hughes <tom@compton.nu>
Mon, 9 Sep 2013 10:49:00 +0000 (11:49 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 22 Sep 2013 09:33:31 +0000 (10:33 +0100)
commit90048d87d69e4476a493f291723becf50609665b
treee7c74955cc83cdf173fd53edb4381e674126f763
parentd8a504d8dbc7262dee96678e98d017d918dfa111
Ignore exceptions clearing sessions

Rails 3 sessions can't be loaded by rails 4 but reset_session also
fails because it tries to clear the session, which tries to load it
in to clear it.

So monkey patch the session to ignore exceptions during clear so
that out normal reset-on-exception logic will reset the session.
config/initializers/session.rb [new file with mode: 0644]