Sha256: 573e7393768795cadb82f55545ed93788969d77bfffc4fc8722ed1c3d5761175

Contents?: true

Size: 243 Bytes

Versions: 22

Compression:

Stored size: 243 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
tybo-0.0.26 app/helpers/tybo/flash_helper.rb
tybo-0.0.24 app/helpers/tybo/flash_helper.rb
tybo-0.0.23 app/helpers/tybo/flash_helper.rb
tybo-0.0.22 app/helpers/tybo/flash_helper.rb
tybo-0.0.21 app/helpers/tybo/flash_helper.rb
tybo-0.0.20 app/helpers/tybo/flash_helper.rb
tybo-0.0.19 app/helpers/tybo/flash_helper.rb
tybo-0.0.18 app/helpers/tybo/flash_helper.rb
tybo-0.0.17 app/helpers/tybo/flash_helper.rb
tybo-0.0.16 app/helpers/tybo/flash_helper.rb
tybo-0.0.15 app/helpers/tybo/flash_helper.rb
tybo-0.0.14 app/helpers/tybo/flash_helper.rb
tybo-0.0.13 app/helpers/tybo/flash_helper.rb
tybo-0.0.12 app/helpers/tybo/flash_helper.rb
tybo-0.0.11 app/helpers/tybo/flash_helper.rb
tybo-0.0.10 app/helpers/tybo/flash_helper.rb
tybo-0.0.9 app/helpers/tybo/flash_helper.rb
tybo-0.0.8 app/helpers/tybo/flash_helper.rb
tybo-0.0.7 app/helpers/tybo/flash_helper.rb
tybo-0.0.6 app/helpers/tybo/flash_helper.rb