Sha256: 5b44b0b62799116914075ceb0f2dd0aeacef99af19633d47555bb49e7e02757a
Contents?: true
Size: 602 Bytes
Versions: 17
Compression:
Stored size: 602 Bytes
Contents
module Headmin module Form module Labelable extend ActiveSupport::Concern included do def label? label != false end def prepend_label? label != false && !float end def append_label? label != false && float end def label_input_group_options float ? {bypass: true} : {} end def label_options { attribute: attribute, form: form, required: required, text: label } end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems