semantic_form_for 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ class SemanticFormFor::FormBuilder < ActionView::Helpers::FormBuilder
|
|
29
29
|
end
|
30
30
|
|
31
31
|
INPUTS.each do |input|
|
32
|
-
define_method input do |attribute, *args|
|
32
|
+
define_method input do |attribute, *args, &block|
|
33
33
|
options = args.extract_options!
|
34
34
|
text = args.shift
|
35
35
|
error = self.object.errors[attribute].try(:join, ', ')
|