Sha256: 0c025cc39a8cbf7e34f0958075ac9ccf379662894dd65b779c41b87b382bd995
Contents?: true
Size: 474 Bytes
Versions: 5
Compression:
Stored size: 474 Bytes
Contents
module Geri module ApplicationHelper def flash_alert type = flash_type if type content_tag(:div, flash[type], class: "alert alert-#{type}") end end def current_page 'index' unless params[:path] end private def flash_type return :warning if flash[:warning] return :success if flash[:success] return :danger if flash[:danger] return :info if flash[:info] false end end end
Version data entries
5 entries across 5 versions & 1 rubygems