Sha256: e7a328dfd657b500e9d990374d02fa97e69721db8495b28ae25ff078eaa04088
Contents?: true
Size: 865 Bytes
Versions: 6
Compression:
Stored size: 865 Bytes
Contents
require 'simple_form/form_builder' require 'para/form_builder/containers' require 'para/form_builder/field_mappings' require 'para/form_builder/nested_form' require 'para/form_builder/ordering' require 'para/form_builder/settings' require 'para/form_builder/tabs' # We'll implement our own form builder later, but for now it would need to # patch or override Cocoon to allow creating nested fields with our custom # form builder instead of `simple_fields_for` which uses SimpleForm::FormBuilder # explicitly # SimpleForm::FormBuilder.class_eval do include Para::FormBuilder::Containers include Para::FormBuilder::FieldMappings include Para::FormBuilder::NestedForm include Para::FormBuilder::Ordering include Para::FormBuilder::Settings include Para::FormBuilder::Tabs end SimpleForm::FormBuilder.map_type(:inet, to: SimpleForm::Inputs::StringInput)
Version data entries
6 entries across 6 versions & 1 rubygems