Skip to content

Commit

Permalink
Exclude devise :timedout from flash messages
Browse files Browse the repository at this point in the history
  • Loading branch information
latortuga committed Feb 19, 2012
1 parent 65b12d2 commit 4497559
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/active_admin/views/pages/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4497559

Please sign in to comment.