config/initializers/simple_form.rb
Line is too long. [85/80] Open
Open
# type as key and the wrapper that will be used for all inputs with specified type.
- Exclude checks
Line is too long. [87/80] Open
Open
# Tell browsers whether to use the native HTML5 validations (novalidate form option).
- Exclude checks
Line is too long. [91/80] Open
Open
# config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
- Exclude checks
Line is too long. [83/80] Open
Open
# You can define the class to use on all collection wrappers. Defaulting to none.
- Exclude checks
Align the elements of a hash literal if they span more than one line. Open
Open
hint_class: :field_with_hint, error_class: :field_with_errors do |b|
- Read upRead up
- Exclude checks
Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:
- key (left align keys)
- separator (align hash rockets and colons, right align keys)
- table (left align keys, hash rockets, and values)
The treatment of hashes passed as the last argument to a method call can also be configured. The options are:
- always_inspect
- always_ignore
- ignore_implicit (without curly braces)
- ignore_explicit (with curly braces)
Example:
# EnforcedHashRocketStyle: key (default)
# EnforcedColonStyle: key (default)
# good
{
foo: bar,
ba: baz
}
{
:foo => bar,
:ba => baz
}
# bad
{
foo: bar,
ba: baz
}
{
:foo => bar,
:ba => baz
}
Example:
# EnforcedHashRocketStyle: separator
# EnforcedColonStyle: separator
#good
{
foo: bar,
ba: baz
}
{
:foo => bar,
:ba => baz
}
#bad
{
foo: bar,
ba: baz
}
{
:foo => bar,
:ba => baz
}
{
:foo => bar,
:ba => baz
}
Example:
# EnforcedHashRocketStyle: table
# EnforcedColonStyle: table
#good
{
foo: bar,
ba: baz
}
{
:foo => bar,
:ba => baz
}
#bad
{
foo: bar,
ba: baz
}
{
:foo => bar,
:ba => baz
}
Line is too long. [93/80] Open
Open
# To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
- Exclude checks
Line is too long. [91/80] Open
Open
# in this configuration, which is recommended due to some quirks from different browsers.
- Exclude checks
Line is too long. [92/80] Open
Open
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
- Exclude checks
Line is too long. [89/80] Open
Open
# These validations are enabled in SimpleForm's internal config but disabled by default
- Exclude checks