gregbell/active_admin — Issue #1005: Remove flash[:timedout] from build_flash_messages
Author: bikramwp
Created: 2012-02-12 02:54:38+00:00
State: open

In `ActiveAdmin::Views::Pages::Base#build_flash_messages`, skip the rendering for `flash[:timedout]`:

flash.each do |type, message|
div message, :class => "flash flash_#{type}" unless type == :timedout
end

This is because devise uses the `flash[:timedout]` for redirection upon session time out and sets its value to `true`. If the flash is not removed, the resulting markup looks like this after a session time out:

Your session expired, please sign in again to continue.

true