lib/generators/templates/formtastic.rb in formtastic-2.0.2 vs lib/generators/templates/formtastic.rb in formtastic-2.1.0.beta1

- old
+ new

@@ -66,9 +66,13 @@ # Specifies if labels/hints for input fields automatically be looked up using I18n. # Default value: true. Overridden for specific fields by setting value to true, # i.e. :label => true, or :hint => true (or opposite depending on initialized value) # Formtastic::FormBuilder.i18n_lookups_by_default = false +# Specifies the class to use for localization lookups. You can create your own +# class and use it instead by subclassing Formtastic::Localizer (which is the default). +# Formtastic::FormBuilder.i18n_localizer = MyOwnLocalizer + # You can add custom inputs or override parts of Formtastic by subclassing Formtastic::FormBuilder and # specifying that class here. Defaults to Formtastic::FormBuilder. # Formtastic::Helpers::FormHelper.builder = MyCustomBuilder # You can opt-in to Formtastic's use of the HTML5 `required` attribute on `<input>`, `<select>`