Sha256: 4cab1d504581625b88fe4a27224c5a45042f6a6635d9ac2c67ff39091a3cd045

Contents?: true

Size: 639 Bytes

Versions: 5

Compression:

Stored size: 639 Bytes

Contents

module FormtasticBootstrap
  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

5 entries across 5 versions & 1 rubygems

Version Path
formtastic-bootstrap-3.1.1 lib/formtastic-bootstrap/inputs/base/hints.rb
formtastic-bootstrap-3.1.0 lib/formtastic-bootstrap/inputs/base/hints.rb
formtastic-bootstrap-3.0.0 lib/formtastic-bootstrap/inputs/base/hints.rb
formtastic-bootstrap-3.0.0.rc.2 lib/formtastic-bootstrap/inputs/base/hints.rb
formtastic-bootstrap-3.0.0.rc.1 lib/formtastic-bootstrap/inputs/base/hints.rb