Sha256: ff0bee6e937a0c1a95c66293750d093c83a1a13a145fcc534fe882b0428dced7
Contents?: true
Size: 400 Bytes
Versions: 15
Compression:
Stored size: 400 Bytes
Contents
module UiBibzInputs class BaseInput < SimpleForm::Inputs::Base def input(wrapper_options) super end def options super.merge({ value: @builder.object.send(attribute_name)}).merge(@builder.options[:input_html] || {}) end private def input_attribute_name "#{ @builder.object.class.name.gsub('::', "").underscore }[#{ attribute_name }]" end end end
Version data entries
15 entries across 15 versions & 1 rubygems