Sha256: 45c094c74174806115d7a58c5e531997154bc97aed80d930b505059d0068c26d

Contents?: true

Size: 348 Bytes

Versions: 6

Compression:

Stored size: 348 Bytes

Contents

module Gaku::FlashHelper

  def flash_color(type)
    case type
      when :notice then 'alert alert-info'
      when :success then 'alert alert-success'
      when :error then 'alert alert-error'
      when :alert then 'alert alert-error'
    end
  end

  def render_flash
    escape_javascript(render 'gaku/shared/flash', flash: flash)
  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaku_core-0.0.3 app/helpers/gaku/flash_helper.rb
gaku-0.0.3 core/app/helpers/gaku/flash_helper.rb
gaku-0.0.2 core/app/helpers/gaku/flash_helper.rb
gaku_core-0.0.2 app/helpers/gaku/flash_helper.rb
gaku-0.0.1 core/app/helpers/gaku/flash_helper.rb
gaku_core-0.0.1 app/helpers/gaku/flash_helper.rb