flashes_helper.rb 151 B

1234567
  1. # frozen_string_literal: true
  2. module FlashesHelper
  3. def user_facing_flashes
  4. flash.to_hash.slice('alert', 'error', 'notice', 'success')
  5. end
  6. end