Class: Playbook::PbForm::Form::SimpleFormForm
- Inherits:
-
Object
- Object
- Playbook::PbForm::Form::SimpleFormForm
- Defined in:
- app/pb_kits/playbook/pb_form/form/simple_form_form.rb
Instance Method Summary collapse
-
#initialize(form) ⇒ SimpleFormForm
constructor
A new instance of SimpleFormForm.
- #merged_form_system_options ⇒ Object
- #to_partial_path ⇒ Object
Constructor Details
#initialize(form) ⇒ SimpleFormForm
Returns a new instance of SimpleFormForm.
7 8 9 |
# File 'app/pb_kits/playbook/pb_form/form/simple_form_form.rb', line 7 def initialize(form) self.form = form end |
Instance Method Details
#merged_form_system_options ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'app/pb_kits/playbook/pb_form/form/simple_form_form.rb', line 15 def [ Array()[0], Hash(Array()[1]).merge( data: { "pb-form-validation": validate }.merge((&.last || {}).fetch(:data, {})), html: merged_html, builder: form_builder ), ] end |
#to_partial_path ⇒ Object
11 12 13 |
# File 'app/pb_kits/playbook/pb_form/form/simple_form_form.rb', line 11 def to_partial_path "pb_form/form_simple_form" end |