Skip to content

Commit

Permalink
fixed #657
Browse files Browse the repository at this point in the history
  • Loading branch information
gucki committed Aug 19, 2011
1 parent ed60316 commit fdd2300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/formtastic/helpers/form_helper.rb
Expand Up @@ -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)
Expand Down

0 comments on commit fdd2300

Please sign in to comment.