Module: Ariadne::Form

Defined in:
app/lib/ariadne/form.rb,
app/components/ariadne/form/base_component.rb,
app/components/ariadne/form/group/component.rb,
app/components/ariadne/form/radio/component.rb,
app/components/ariadne/form/select/component.rb,
app/components/ariadne/form/toggle/component.rb,
app/components/ariadne/form/checkbox/component.rb,
app/components/ariadne/form/separator/component.rb,
app/components/ariadne/form/base_input_component.rb,
app/components/ariadne/form/text_field/component.rb,
app/components/ariadne/form/form_control/component.rb,
app/components/ariadne/form/hidden_field/component.rb,
app/components/ariadne/form/radio_button/component.rb,
app/components/ariadne/form/toggle_group/component.rb,
app/components/ariadne/form/form_reference/component.rb,
app/components/ariadne/form/radio_button_group/component.rb,
app/components/ariadne/form/validation_message/component.rb,
app/components/ariadne/form/toggle_group/option/component.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Checkbox, FormControl, FormReference, Group, HiddenField, Radio, RadioButton, RadioButtonGroup, Select, Separator, TextField, Toggle, ToggleGroup, ValidationMessage Classes: BaseComponent, BaseInputComponent

Class Method Summary collapse

Class Method Details

.inline_form(builder, base = nil, &block) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'app/lib/ariadne/form.rb', line 6

def self.inline_form(builder, base = nil, &block)
  base ||= defined?(ApplicationForm) ? ApplicationForm : Ariadne::Forms::Base

  klass = Class.new(base) do
    form(&block)
  end

  klass.new(builder)
end