Sha256: 8ec9a7fa7a0e1d200c794c3bd02a0699fb284a5a2e74e077e3ddf6a2b9bb1485

Contents?: true

Size: 641 Bytes

Versions: 2

Compression:

Stored size: 641 Bytes

Contents

module FormtasticRebootstrap
  module Inputs
    module Base
      module Hints

        include Formtastic::Inputs::Base::Hints

        def hint_html(inline_or_block = :block)
          if hint?
            hint_class = if inline_or_block == :inline
              options[:hint_class] || builder.default_inline_hint_class
            else
              options[:hint_class] || builder.default_block_hint_class
            end
            template.content_tag(
              :span,
              Formtastic::Util.html_safe(hint_text),
              :class => hint_class
            )
          end
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
formtastic_rebootstrap-0.0.2 lib/formtastic_rebootstrap/inputs/base/hints.rb
formtastic_rebootstrap-0.0.1 lib/formtastic_rebootstrap/inputs/base/hints.rb