Sha256: 252401df1b7f27b9051c673b72992e5c6d4c0a2da17e1beea2512be0449de78f
Contents?: true
Size: 316 Bytes
Versions: 1
Compression:
Stored size: 316 Bytes
Contents
module Railsstrap module BadgeLabelHelper def badge(*args) badge_label(:badge, *args) end private def badge_label(what, value, type = nil) klass = [what] klass << "#{what}-#{type}" if type.present? content_tag :span, value, :class => "#{klass.join(' ')}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
railsstrap-3.3.2 | app/helpers/railsstrap/badge_label_helper.rb |