homeschool 0.0.1.23 → 0.0.1.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/form_buildr.rb +3 -3
  2. metadata +1 -1
data/lib/form_buildr.rb CHANGED
@@ -40,15 +40,15 @@ class ActionView::Helpers::FormBuilder
40
40
 
41
41
  def labeled_radio_button(method, tag_value, options={})
42
42
  id = %{#{@object_name}_#{method}_#{tag_value}}
43
- return send(:radio_button, method, tag_value, {:id => id}.update(options.without(:label, :no_colon))) + send(:label_for, method, {:no_colon => true, :label => tag_value.humanize, :id => id}.update(options))
43
+ send(:radio_button, method, tag_value, {:id => id}.update(options.without(:label, :no_colon))) + send(:label_for, method, {:no_colon => true, :label => tag_value.humanize, :id => id}.update(options))
44
44
  end
45
45
 
46
46
  def labeled_check_box(method, options={}, checked_value="1", unchecked_value="0")
47
- return send(:check_box, method, options.without(:label, :no_colon), checked_value, unchecked_value) + send(:label_for, method, options.update(:no_colon => true))
47
+ send(:check_box, method, options.without(:label, :no_colon), checked_value, unchecked_value) + send(:label_for, method, options.update(:no_colon => true))
48
48
  end
49
49
 
50
50
  def labeled_select(method, choices, options={}, html_options={})
51
- return send(:select, method, choices, options, html_options) + send(:label_for, method, options.update(:no_colon => true))
51
+ label_for(method, options) + select(method, choices, options, html_options)
52
52
  end
53
53
 
54
54
  rdef(/labeled_(.*)/) do |match, *args|
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: homeschool
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1.23
6
+ version: 0.0.1.24
7
7
  date: 2007-09-20 00:00:00 -04:00
8
8
  summary: The homeschool gem
9
9
  require_paths: