Sha256: d62774475470080e20b0ab238bde3533851cfb1db25aa42509b8e6a50d64ac79
Contents?: true
Size: 764 Bytes
Versions: 5
Compression:
Stored size: 764 Bytes
Contents
# frozen_string_literal: true module Playbook module PbForm class Form class FormWithForm def initialize(form) self.form = form end def to_partial_path "pb_form/form_form_with" end def merged_form_system_options Hash(form_system_options).merge( class: merged_class, data: { "pb-form-validation": validate }, builder: form_builder ) end private attr_accessor :form delegate_missing_to :form def merged_class "pb-form #{Hash(form_system_options)[:class]}".strip end def form_builder FormBuilder::FormWithFormBuilder end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems