]> git.openstreetmap.org Git - rails.git/blobdiff - lib/session_persistence.rb
Localisation updates from https://translatewiki.net.
[rails.git] / lib / session_persistence.rb
index d4dd1cc1de3aa53a8b2516993aa517382537166f..ac0e690c23e8c0616138d7b3cbdafe8a7b52c13d 100644 (file)
@@ -25,7 +25,7 @@ module SessionPersistence
 
     # Install filter when we are included
     def included(controller)
-      controller.after_filter :persist_session
+      controller.after_action :persist_session
     end
   end
 
@@ -55,7 +55,7 @@ module SessionPersistence
     if session[session_persistence_key]
       request.session_options[:expire_after] = session[session_persistence_key]
     end
-  rescue
+  rescue StandardError
     reset_session
   end
 end