Module: ActiveAdmin::ViewHelpers::FlashHelper

Included in:
ActiveAdmin::ViewHelpers
Defined in:
lib/active_admin/view_helpers/flash_helper.rb

Instance Method Summary collapse

Instance Method Details

#flash_messagesObject

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.



9
10
11
# File 'lib/active_admin/view_helpers/flash_helper.rb', line 9

def flash_messages
  @flash_messages ||= flash.to_hash.with_indifferent_access.except(*active_admin_application.flash_keys_to_except)
end