Sha256: d93477211cc778924f870bd0ce7b4711a5008d35e96277e52def8b829b484fad

Contents?: true

Size: 278 Bytes

Versions: 13

Compression:

Stored size: 278 Bytes

Contents

module Weeler
  module FlashHelper
    def alert_class_for(flash_type)
      {
        :success => 'alert-success',
        :error => 'alert-danger',
        :alert => 'alert-warning',
        :notice => 'alert-info'
      }[flash_type.to_sym] || "alert-info"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
weeler-2.1.0 app/helpers/weeler/flash_helper.rb
weeler-2.0.1 app/helpers/weeler/flash_helper.rb
weeler-2.0.0 app/helpers/weeler/flash_helper.rb
weeler-1.6.0 app/helpers/weeler/flash_helper.rb
weeler-1.5.4 app/helpers/weeler/flash_helper.rb
weeler-1.5.2 app/helpers/weeler/flash_helper.rb
weeler-1.5.1 app/helpers/weeler/flash_helper.rb
weeler-1.4.0 app/helpers/weeler/flash_helper.rb
weeler-1.2.0 app/helpers/weeler/flash_helper.rb
weeler-1.1.0 app/helpers/weeler/flash_helper.rb
weeler-1.0.4 app/helpers/weeler/flash_helper.rb
weeler-1.0.3 app/helpers/weeler/flash_helper.rb
weeler-1.0.2 app/helpers/weeler/flash_helper.rb