Sha256: ef9e27cf48c747656539aa2793068e81754424f145db18d8dafb5b14326b6025

Contents?: true

Size: 274 Bytes

Versions: 5

Compression:

Stored size: 274 Bytes

Contents

module Headmin
  module Form
    module Hintable
      extend ActiveSupport::Concern

      included do
        def hint?
          hint.present?
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
headmin-0.5.1 app/models/concerns/headmin/form/hintable.rb
headmin-0.5.0 app/models/concerns/headmin/form/hintable.rb
headmin-0.4.2 app/models/concerns/headmin/form/hintable.rb
headmin-0.4.1 app/models/concerns/headmin/form/hintable.rb
headmin-0.4.0 app/models/concerns/headmin/form/hintable.rb