Sha256: a4c7e66548fc3b77556e13d70aef4d3f99808c467b41fe72cde96f84c833d664
Contents?: true
Size: 454 Bytes
Versions: 68
Compression:
Stored size: 454 Bytes
Contents
module ActiveAdmin module ViewHelpers module FlashHelper # 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. def flash_messages @flash_messages ||= flash.to_hash.with_indifferent_access.except(*active_admin_application.flash_keys_to_except) end end end end
Version data entries
68 entries across 68 versions & 7 rubygems