Sha256: 5e4b051aeea87122bdd229c45a48afea9a5aa61a66e0d55836c1936991b5c50e

Contents?: true

Size: 373 Bytes

Versions: 12

Compression:

Stored size: 373 Bytes

Contents

module Headmin
  module Form
    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
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
headmin-0.6.3 app/models/concerns/headmin/form/hintable.rb
headmin-0.6.2 app/models/concerns/headmin/form/hintable.rb
headmin-0.6.1 app/models/concerns/headmin/form/hintable.rb
headmin-0.6.0 app/models/concerns/headmin/form/hintable.rb
headmin-0.5.9 app/models/concerns/headmin/form/hintable.rb
headmin-0.5.8 app/models/concerns/headmin/form/hintable.rb
headmin-0.5.7 app/models/concerns/headmin/form/hintable.rb
headmin-0.5.6 app/models/concerns/headmin/form/hintable.rb
headmin-0.5.5 app/models/concerns/headmin/form/hintable.rb
headmin-0.5.4 app/models/concerns/headmin/form/hintable.rb
headmin-0.5.3 app/models/concerns/headmin/form/hintable.rb
headmin-0.5.2 app/models/concerns/headmin/form/hintable.rb