simple-form-builder 0.0.3.rails3 → 0.0.4.rails3

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,7 @@ module SimpleFormBuilder
52
52
 
53
53
  options[:class] = "checkbox"
54
54
 
55
- list_item(super + label(method, sfb_options, options.merge(:no_colon => true)), sfb_options, options)
55
+ list_item(super + label(method, sfb_options.merge(:no_colon => true), options), sfb_options, options)
56
56
  end
57
57
 
58
58
  def radio_button(method, tag_value, options={})
@@ -215,7 +215,7 @@ module SimpleFormBuilder
215
215
  end
216
216
 
217
217
  tag = ActionView::Helpers::InstanceTag.new(
218
- object_name, method, self, object
218
+ object_name, method, self, object.is_a?(Symbol) ? object : nil
219
219
  ).to_label_tag(text.html_safe, label_options)
220
220
 
221
221
  if hint = sfb_options[:hint]
@@ -1,3 +1,3 @@
1
1
  module SimpleFormBuilder
2
- VERSION = '0.0.3.rails3'
2
+ VERSION = '0.0.4.rails3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-form-builder
3
3
  version: !ruby/object:Gem::Version
4
- hash: -428173563
4
+ hash: -428173543
5
5
  prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
9
+ - 4
10
10
  - rails3
11
- version: 0.0.3.rails3
11
+ version: 0.0.4.rails3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Ben Askins
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-01-25 00:00:00 +11:00
19
+ date: 2011-03-21 00:00:00 +11:00
20
20
  default_executable:
21
21
  dependencies: []
22
22