Rails 3.1 + Devise after timeout: can't override redirect to login
===

I've read several questions regarding this issue, and I've placed this code in application_controller.rb, that is supposed to override the default sign out route:

      def after_sign_out_path_for(resource)       
        home_index_path
      end

Home path set in routes. If I manually sign out, the redirect works fine. But if I timeout, it ALWAYS redirects to the login page on refresh. In fact, if I purposely put in bad code in the after_sign_out_path call, it is totally ignored, yet fails as expected when manually signed out. I've tried setting the stored_location_for to nil as well, with no better results.

What am I missing here? Should I be using the timedout method somehow? Thanks.