Sha256: b5c7c459dc32ecabad188dfec050b789936264ef1581e26c74ad2aa829e77b10

Contents?: true

Size: 150 Bytes

Versions: 44

Compression:

Stored size: 150 Bytes

Contents

# frozen_string_literal: true
module FlashesHelper
  def user_facing_flashes
    flash.to_hash.slice('alert', 'error', 'notice', 'success')
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
onotole-2.0.2 templates/flashes_helper.rb
onotole-2.0.1 templates/flashes_helper.rb
onotole-2.0.0 templates/flashes_helper.rb
onotole-1.2.11 templates/flashes_helper.rb
onotole-1.2.10 templates/flashes_helper.rb
onotole-1.2.9 templates/flashes_helper.rb
onotole-1.2.8 templates/flashes_helper.rb
onotole-1.2.7 templates/flashes_helper.rb
onotole-1.2.6 templates/flashes_helper.rb
onotole-1.2.5 templates/flashes_helper.rb
onotole-1.2.4 templates/flashes_helper.rb
onotole-1.2.3 templates/flashes_helper.rb
onotole-1.2.2 templates/flashes_helper.rb
onotole-1.2.1 templates/flashes_helper.rb
onotole-1.1.21 templates/flashes_helper.rb
onotole-1.1.20 templates/flashes_helper.rb
onotole-1.1.19 templates/flashes_helper.rb
onotole-1.1.18 templates/flashes_helper.rb
onotole-1.1.17 templates/flashes_helper.rb
onotole-1.1.16 templates/flashes_helper.rb