Module: FlexaFormtasticBootstrap::Inputs::Base::Hints
- Includes:
- Formtastic::Inputs::Base::Hints
- Included in:
- FlexaFormtasticBootstrap::Inputs::Base
- Defined in:
- lib/flexa_formtastic_bootstrap/inputs/base/hints.rb
Instance Method Summary collapse
Instance Method Details
#hint_html(inline_or_block = :inline) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/flexa_formtastic_bootstrap/inputs/base/hints.rb', line 8 def hint_html(inline_or_block = :inline) if hint? hint_class = if inline_or_block == :inline [:hint_class] || builder.default_inline_hint_class else [:hint_class] || builder.default_block_hint_class end template.content_tag( :span, Formtastic::Util.html_safe(hint_text), :class => hint_class ) end end |