client_side_validations config
This commit is contained in:
parent
9fb6597980
commit
ea399b2c72
1 changed files with 6 additions and 1 deletions
|
@ -1,9 +1,14 @@
|
||||||
# ClientSideValidations Initializer
|
# ClientSideValidations Initializer
|
||||||
|
|
||||||
# Uncomment to disable uniqueness validator, possible security issue
|
# Uncomment to disable uniqueness validator, possible security issue
|
||||||
# ClientSideValidations::Config.disabled_validators = [:uniqueness]
|
# Disabled because of possible security issue and because of bug
|
||||||
|
# https://github.com/bcardarella/client_side_validations/pull/532
|
||||||
|
ClientSideValidations::Config.disabled_validators = [:uniqueness]
|
||||||
|
|
||||||
# Uncomment to validate number format with current I18n locale
|
# Uncomment to validate number format with current I18n locale
|
||||||
|
# Foodsoft is currently using localize_input which is activated on certain
|
||||||
|
# fields only, meaning we can't globally turn this on. The non-i18n number
|
||||||
|
# format is still supported - so for now keep false.
|
||||||
# ClientSideValidations::Config.number_format_with_locale = true
|
# ClientSideValidations::Config.number_format_with_locale = true
|
||||||
|
|
||||||
# Uncomment the following block if you want each input field to have the validation messages attached.
|
# Uncomment the following block if you want each input field to have the validation messages attached.
|
||||||
|
|
Loading…
Reference in a new issue