Permalink
Browse files

Allow easier setting of a custom form class.

  • Loading branch information...
1 parent c258598 commit 471f7d0623a2e8bcad28b3052d0141c4382b75e0 @tylerhunt committed Oct 17, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/formulate/form_helper.rb
View
1 lib/formulate/form_helper.rb
@@ -6,6 +6,7 @@ def form_for(record, options={}, &proc)
options[:html] ||= {}
apply_form_for_options!(record, options)
options[:html][:class] << ' formulate'
+ options[:html][:class] << " #{options[:class]}" if options[:class]
original_field_error_proc = ::ActionView::Base.field_error_proc
::ActionView::Base.field_error_proc = FIELD_ERROR_PROC

0 comments on commit 471f7d0

Please sign in to comment.