Method: Primer::Forms::Dsl::CheckBoxInput#values_disambiguate_template_names?

Defined in:
app/lib/primer/forms/dsl/check_box_input.rb

#values_disambiguate_template_names?Boolean

Returns:

  • (Boolean)

53
54
55
56
57
# File 'app/lib/primer/forms/dsl/check_box_input.rb', line 53

def values_disambiguate_template_names?
  # Check boxes submitted as an array all have the same name, so we return true here
  # to ensure different caption templates can be attached to individual check box inputs.
  @scheme == :array
end