Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Exclude devise :timedout from flash messages

  • Loading branch information...
commit 449755904ecedc8966483308d7084f0c75859a65 1 parent 65b12d2
Drew Ulmer latortuga authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/active_admin/views/pages/base.rb
6 lib/active_admin/views/pages/base.rb
View
@@ -102,10 +102,10 @@ def build_page_content
end
def build_flash_messages
- if flash.keys.any?
+ if flash.keys.except(:timedout).any?
div :class => 'flashes' do
- flash.each do |type, message|
- div message, :class => "flash flash_#{type}"
+ flash.keys.except(:timedout).each do |k|
+ div flash[k], :class => "flash flash_#{k}"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.