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 CHANGED
@@ -5,7 +5,7 @@ require 'merb-core'
5
5
  require 'merb-core/tasks/merb'
6
6
 
7
7
  GEM_NAME = "merb_form_fields"
8
- GEM_VERSION = "0.0.3"
8
+ GEM_VERSION = "0.0.4"
9
9
  AUTHOR = "Jacques Crocker"
10
10
  EMAIL = "merbjedi@gmail.com"
11
11
  HOMEPAGE = "http://github.com/merbjedi/merb_form_fields"
@@ -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)}#{note_wrapper}",
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb_form_fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacques Crocker