Method: Primer::Forms::ToggleSwitchForm.new

Defined in:
app/lib/primer/forms/toggle_switch_form.rb

.new(**options) ⇒ Object

Override to avoid accepting a builder argument. We create our own builder on render. See the implementation of render_in below.


57
58
59
# File 'app/lib/primer/forms/toggle_switch_form.rb', line 57

def self.new(**options)
  allocate.tap { |obj| obj.send(:initialize, **options) }
end