lib/generators/templates/formtastic.rb in formtastic-3.0.0 vs lib/generators/templates/formtastic.rb in formtastic-3.1.0.rc1

- old
+ new

@@ -86,5 +86,25 @@ # You can opt-in to new HTML5 browser validations (for things like email and url inputs) by setting # this to true. Doing so will add a `novalidate` attribute to the `<form>` tag. # See http://diveintohtml5.org/forms.html#validation for more info. # Formtastic::FormBuilder.perform_browser_validations = true + +# By creating custom input class finder, you can change how input classes are looked up. +# For example you can make it to search for TextInputFilter instead of TextInput. +# See # TODO: add link # for more information +# NOTE: this behavior will be default from Formtastic 4.0 +Formtastic::FormBuilder.input_class_finder = Formtastic::InputClassFinder + +# Define custom namespaces in which to look up your Input classes. Default is +# to look up in the global scope and in Formtastic::Inputs. +# Formtastic::FormBuilder.input_namespaces = [ ::Object, ::MyInputsModule, ::Formtastic::Inputs ] + +# By creating custom action class finder, you can change how action classes are looked up. +# For example you can make it to search for MyButtonAction instead of ButtonAction. +# See # TODO: add link # for more information +# NOTE: this behavior will be default from Formtastic 4.0 +Formtastic::FormBuilder.action_class_finder = Formtastic::ActionClassFinder + +# Define custom namespaces in which to look up your Action classes. Default is +# to look up in the global scope and in Formtastic::Actions. +# Formtastic::FormBuilder.action_namespaces = [ ::Object, ::MyActionsModule, ::Formtastic::Actions ]