Fix for #657, rc4 broken with rails 3.1.0.rc4/rc5 (now really navigasmic) #658

Merged
merged 1 commit into from Aug 18, 2011
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

@@ -143,7 +143,7 @@ def semantic_form_for(record_or_name_or_array, *args, &proc)
options = args.extract_options!
options[:builder] ||= @@builder
options[:html] ||= {}
- options[:html][:novalidate] = !builder.perform_browser_validations unless options[:html].key?(:novalidate)
+ options[:html][:novalidate] = !@@builder.perform_browser_validations unless options[:html].key?(:novalidate)
@@builder.custom_namespace = options[:namespace].to_s
singularizer = defined?(ActiveModel::Naming.singular) ? ActiveModel::Naming.method(:singular) : ActionController::RecordIdentifier.method(:singular_class_name)