Sha256: 2d1196f5ea337d898e4299184caa73dc3bf619a83a515214efaa757fce308147

Contents?: true

Size: 484 Bytes

Versions: 17

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true
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

17 entries across 17 versions & 1 rubygems

Version Path
activeadmin-3.2.5 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-3.2.4 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-3.2.3 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-3.2.2 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-3.2.1 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-3.2.0 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-3.1.0 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-3.0.0 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-2.14.0 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-2.13.1 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-2.13.0 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-2.12.0 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-2.11.2 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-2.11.1 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-2.11.0 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-2.10.1 lib/active_admin/view_helpers/flash_helper.rb
activeadmin-2.10.0 lib/active_admin/view_helpers/flash_helper.rb