Permalink
Browse files

Merge branch 'master' of http://github.com/paneq/formtastic into pane…

…q-master

Conflicts:
	README.textile
  • Loading branch information...
2 parents 8d5fdc8 + 3d32852 commit 153f4e8ba0d62b0b3d40b0c822239af0a50eb71d @justinfrench committed Nov 2, 2010
Showing with 19 additions and 0 deletions.
  1. +19 −0 README.textile
View
@@ -558,6 +558,25 @@ If you want to add your own input types to encapsulate your own logic or interfa
@Formtastic::SemanticFormHelper.builder = MyCustomBuilder@
+Be aware that you should either set the options on custom builder or require it after setting options on formtastic default builder.
+
+<pre>
+ # OK
+ Formtastic::SemanticFormBuilder.i18n_lookups_by_default = true
+ require 'formtastic/my_custom_builder'
+ Formtastic::SemanticFormHelper.builder = Formtastic::MyCustomBuilder
+
+ # OK
+ require 'formtastic/my_custom_builder'
+ Formtastic::SemanticFormHelper.builder = Formtastic::MyCustomBuilder
+ Formtastic::MyCustomBuilder.i18n_lookups_by_default = true
+
+ # WRONG!
+ require 'formtastic/my_custom_builder'
+ Formtastic::SemanticFormBuilder.i18n_lookups_by_default = true
+ Formtastic::SemanticFormHelper.builder = Formtastic::MyCustomBuilder
+</pre>
+
h2. Security

0 comments on commit 153f4e8

Please sign in to comment.