Add some grammar full stops and use the Simple Form name when is not associated to the class
This commit is contained in:
parent
2765f5ae8f
commit
6bc6e72b89
|
@ -581,8 +581,8 @@ class CollectionSelectInput < SimpleForm::Inputs::CollectionSelectInput
|
|||
end
|
||||
```
|
||||
|
||||
If needed, you can namespace your custom inputs in a module and tell **SimpleForm** to look for
|
||||
their definition in this module. This can avoid conflicts with other form libraries (like Formtastic) that look up
|
||||
If needed, you can namespace your custom inputs in a module and tell **Simple Form** to look for
|
||||
their definitions in this module. This can avoid conflicts with other form libraries (like Formtastic) that look up
|
||||
the global context to find inputs definition too.
|
||||
|
||||
```ruby
|
||||
|
|
|
@ -131,10 +131,10 @@ See https://github.com/plataformatec/simple_form/pull/997 for more information.
|
|||
@@wrapper_mappings = nil
|
||||
|
||||
# Namespaces where SimpleForm should look for custom input classes that override
|
||||
# default inputs. Namespaces are given as string to allow lazy loading inputs
|
||||
# default inputs. Namespaces are given as string to allow lazy loading inputs.
|
||||
# e.g. config.custom_inputs_namespaces << "CustomInputs"
|
||||
# will try to find CustomInputs::NumericInput when an :integer
|
||||
# field is called
|
||||
# field is called.
|
||||
mattr_accessor :custom_inputs_namespaces
|
||||
@@custom_inputs_namespaces = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue