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