Permalink
Browse files

Merge branch 'class_attribute_fix' into 1.2-stable

  • Loading branch information...
2 parents 8bfc66b + 1b12feb commit 2d69c234982f7994fbaa1c32807e4813475d5d8d @justinfrench committed Dec 20, 2010
Showing with 81 additions and 64 deletions.
  1. +73 −64 lib/formtastic.rb
  2. +8 −0 lib/generators/templates/formtastic.rb
View
@@ -1,5 +1,13 @@
# encoding: utf-8
+# --------------------------------------------------------------------------------------------------
+# Please note: If you're subclassing Formtastic::SemanticFormBuilder in a Rails 3 project,
+# Formtastic uses class_attribute for these configuration attributes instead of the deprecated
+# class_inheritable_attribute. The behaviour is slightly different with subclasses (especially
+# around attributes with Hash or Array) values, so make sure you understand what's happening.
+# See the documentation for class_attribute in ActiveSupport for more information.
+# --------------------------------------------------------------------------------------------------
+
# Set the default text field size when input is a string. Default is nil.
# Formtastic::SemanticFormBuilder.default_text_field_size = 50

0 comments on commit 2d69c23

Please sign in to comment.