Class: Playbook::PbForm::FormBuilder::SimpleFormBuilder

Inherits:
SimpleForm::FormBuilder
  • Object
show all
Includes:
Playbook::PbForm::FormBuilder
Defined in:
app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb

Instance Method Summary collapse

Instance Method Details

#input(attribute_name, options = {}, &block) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb', line 10

def input(attribute_name, options = {}, &block)
  super(
    attribute_name,
    options.deep_merge(label: false, input_html: {
                    props: {
                      label: true,
                    },
                  }),
    &block
  )
end