Sha256: 25d65d769d87380a84083b4a1ebbfb756f5c639c014247ac6e7ba6a0f7ba9ac7

Contents?: true

Size: 235 Bytes

Versions: 33

Compression:

Stored size: 235 Bytes

Contents

# frozen_string_literal: true
module Tybo
  module FlashHelper
    def classes_for_flash(key)
      if %w[error alert].include?(key)
        'bg-red-alert text-white'
      else
        'bg-tybo text-white'
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
tybo-0.4.1 app/helpers/tybo/flash_helper.rb
tybo-0.4.0 app/helpers/tybo/flash_helper.rb
tybo-0.3.26 app/helpers/tybo/flash_helper.rb
tybo-0.3.24 app/helpers/tybo/flash_helper.rb
tybo-0.3.23 app/helpers/tybo/flash_helper.rb
tybo-0.3.22 app/helpers/tybo/flash_helper.rb
tybo-0.3.21 app/helpers/tybo/flash_helper.rb
tybo-0.3.20 app/helpers/tybo/flash_helper.rb
tybo-0.3.19 app/helpers/tybo/flash_helper.rb
tybo-0.3.18 app/helpers/tybo/flash_helper.rb
tybo-0.3.17 app/helpers/tybo/flash_helper.rb
tybo-0.3.16 app/helpers/tybo/flash_helper.rb
tybo-0.3.15 app/helpers/tybo/flash_helper.rb
tybo-0.3.14 app/helpers/tybo/flash_helper.rb
tybo-0.3.13 app/helpers/tybo/flash_helper.rb
tybo-0.3.12 app/helpers/tybo/flash_helper.rb
tybo-0.3.11 app/helpers/tybo/flash_helper.rb
tybo-0.3.10 app/helpers/tybo/flash_helper.rb
tybo-0.3.9 app/helpers/tybo/flash_helper.rb
tybo-0.3.8 app/helpers/tybo/flash_helper.rb