lib/merb-helpers/form/builder.rb in merb-helpers-0.9.9 vs lib/merb-helpers/form/builder.rb in merb-helpers-0.9.10
- old
+ new
@@ -70,10 +70,10 @@
def bound_radio_group(method, arr)
val = control_value(method)
arr.map do |attrs|
attrs = {:value => attrs} unless attrs.is_a?(Hash)
- attrs[:checked] ||= (val == attrs[:value])
+ attrs[:checked] = true if (val == attrs[:value])
radio_group_item(method, attrs)
end.join
end
def unbound_radio_group(arr, attrs = {})