merb_form_fields 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/merb_form_fields/form_field_builder.rb +2 -4
- metadata +1 -1
data/Rakefile
CHANGED
@@ -70,13 +70,11 @@ module MerbFormFields
|
|
70
70
|
end
|
71
71
|
|
72
72
|
# build note
|
73
|
-
unless note.blank?
|
74
|
-
note_wrapper = tag note_tag,
|
75
|
-
note, :class => note_class
|
73
|
+
note_html = tag(note_tag, note, :class => note_class) unless note.blank?
|
76
74
|
|
77
75
|
# build field
|
78
76
|
tag field_tag,
|
79
|
-
"#{inner_html}#{field_error_message(@obj, attrs[:method], error_override)}#{
|
77
|
+
"#{inner_html}#{field_error_message(@obj, attrs[:method], error_override)}#{note_html}",
|
80
78
|
field_options.merge(:class => css_class)
|
81
79
|
end
|
82
80
|
|