Sha256: 357976957742edbe81b584731baf85f39b654e916a6c75b965a254b1ebe9a979
Contents?: true
Size: 369 Bytes
Versions: 16
Compression:
Stored size: 369 Bytes
Contents
module Formstrap class LabelView < ViewModel def form @form.object_id end def options keys = attributes - %i[attribute form text] options = to_h.slice(*keys) default_options.deep_merge(options) end private def default_options { class: "form-label", required: required } end end end
Version data entries
16 entries across 16 versions & 1 rubygems