Sha256: 49b57adb12062eed492ba1ab41ed26c1d815ce8cd819716edb2b01498fd655bb
Contents?: true
Size: 387 Bytes
Versions: 2
Compression:
Stored size: 387 Bytes
Contents
# frozen_string_literal: true module Phlexi module Form module FieldOptions module Hints def hint(hint = nil) if hint.nil? options[:hint] else options[:hint] = hint self end end def has_hint? options[:hint] != false && hint.present? end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phlexi-form-0.3.0.rc1 | lib/phlexi/form/field_options/hints.rb |
phlexi-form-0.2.0 | lib/phlexi/form/field_options/hints.rb |