Permalink
Browse files

Exclude devise :timedout from flash messages

  • Loading branch information...
1 parent 65b12d2 commit 449755904ecedc8966483308d7084f0c75859a65 @latortuga latortuga committed Feb 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/active_admin/views/pages/base.rb
@@ -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

0 comments on commit 4497559

Please sign in to comment.