Browse files

Reword browser validations comment in generated initializer [ci skip]

  • Loading branch information...
1 parent 54c72b4 commit 9dca432fd48284c1cd413f6852ae85e42ddaa412 @carlosantoniodasilva carlosantoniodasilva committed Apr 3, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/generators/simple_form/templates/config/initializers/simple_form.rb
@@ -106,9 +106,11 @@
# Whether attributes are required by default (or not). Default is true.
# config.required_by_default = true
- # Tell browsers whether to use default HTML5 validations (novalidate option).
- # To restore the default (enabled), comment the below line or change it to true
- # However false is recommmended because simple_form can't control their behavior
+ # Tell browsers whether to use the native HTML5 validations (novalidate form option).
+ # These validations are enabled in SimpleForm's internal config but disabled by default
+ # in this configuration, which is recommended due to some quirks from different browsers.
+ # To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
+ # change this configuration to true.
config.browser_validations = false
# Collection of methods to detect if a file type was given.

0 comments on commit 9dca432

Please sign in to comment.