Sha256: 16e7c30a0e2047805d8b4abb03c61a0a2c4a8d52663f90ba6cd422c765fef2db

Contents?: true

Size: 321 Bytes

Versions: 16

Compression:

Stored size: 321 Bytes

Contents

module Formstrap
  module Hintable
    extend ActiveSupport::Concern

    included do
      def hint?
        hint.present?
      end

      def maxlength?
        maxlength.present?
      end

      def hint_options
        {
          content: hint,
          maxlength: maxlength
        }
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
formstrap-0.4.5 app/models/concerns/formstrap/hintable.rb
formstrap-0.4.4 app/models/concerns/formstrap/hintable.rb
formstrap-0.4.3 app/models/concerns/formstrap/hintable.rb
formstrap-0.4.2 app/models/concerns/formstrap/hintable.rb
formstrap-0.3.5 app/models/concerns/formstrap/hintable.rb
formstrap-0.3.4 app/models/concerns/formstrap/hintable.rb
formstrap-0.3.3 app/models/concerns/formstrap/hintable.rb
formstrap-0.3.2 app/models/concerns/formstrap/hintable.rb
formstrap-0.3.1 app/models/concerns/formstrap/hintable.rb
formstrap-0.3.0 app/models/concerns/formstrap/hintable.rb
formstrap-0.2.1 app/models/concerns/formstrap/hintable.rb
formstrap-0.2.0 app/models/concerns/formstrap/hintable.rb
formstrap-0.1.3 app/models/concerns/formstrap/hintable.rb
formstrap-0.1.2 app/models/concerns/formstrap/hintable.rb
formstrap-0.1.1 app/models/concerns/formstrap/hintable.rb
formstrap-0.1.0 app/models/concerns/formstrap/hintable.rb