module ActiveAdmin::ViewHelpers::FlashHelper

Public Instance Methods

flash_messages() click to toggle source

Returns all the flash keys to display in any Active Admin view. This method removes the :timedout key that Devise uses by default. Note Rails >= 4.1 normalizes keys to strings automatically.

# File lib/active_admin/view_helpers/flash_helper.rb, line 8
def flash_messages
  @flash_messages ||= flash.to_hash.with_indifferent_access.except(*active_admin_application.flash_keys_to_except)
end