Module: ActiveAdmin::ViewHelpers::FlashHelper
- Included in:
- ActiveAdmin::ViewHelpers
- Defined in:
- lib/active_admin/view_helpers/flash_helper.rb
Instance Method Summary collapse
-
#active_admin_flash_messages ⇒ Object
Returns all the flash keys to display in any Active Admin view.
Instance Method Details
#active_admin_flash_messages ⇒ Object
Returns all the flash keys to display in any Active Admin view. This method removes the :timedout key that Devise uses by default
7 8 9 |
# File 'lib/active_admin/view_helpers/flash_helper.rb', line 7 def @active_admin_flash_messages ||= flash.to_hash.except(:timedout) end |