Module: LabelHelper
- Includes:
- FormatHelper
- Defined in:
- app/helpers/label_helper.rb
Instance Method Summary collapse
Methods included from FormatHelper
#prepend_class, #squeeze_n_strip
Instance Method Details
#label_bui(content = nil, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/helpers/label_helper.rb', line 4 def label_bui(content=nil, ={}) return if content.blank? tag = .delete(:tag).try(:to_sym).presence || :span prepend_class(, 'label', get_label_type(.delete(:type))) content_tag tag, content, end |