sinatra-formhelpers-ng 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sinatra/form_helpers.rb +2 -2
- data/sinatra-formhelpers-ng.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.9.0
|
data/lib/sinatra/form_helpers.rb
CHANGED
@@ -101,7 +101,7 @@ module Sinatra
|
|
101
101
|
id, text = id_and_text_from_value(val)
|
102
102
|
single_tag(:input, options.merge(:type => "checkbox", :id => css_id(obj, field, id),
|
103
103
|
:name => "#{obj}[#{field}]#{ary}", :value => id,
|
104
|
-
:checked => vals.include?(
|
104
|
+
:checked => vals.include?(id) ? 'checked' : nil)) +
|
105
105
|
(labs.nil? || labs == true ? label(obj, "#{field}_#{id.to_s.downcase}", text) : '')
|
106
106
|
end.join(join)
|
107
107
|
end
|
@@ -117,7 +117,7 @@ module Sinatra
|
|
117
117
|
id, text = id_and_text_from_value(val)
|
118
118
|
single_tag(:input, options.merge(:type => "radio", :id => css_id(obj, field, id),
|
119
119
|
:name => "#{obj}[#{field}]", :value => id,
|
120
|
-
:checked => vals.include?(
|
120
|
+
:checked => vals.include?(id) ? 'checked' : nil)) +
|
121
121
|
(labs.nil? || labs == true ? label(obj, "#{field}_#{id.to_s.downcase}", text) : '')
|
122
122
|
end.join(join)
|
123
123
|
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "sinatra-formhelpers-ng"
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.9.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["twilson63", "Nate Wiger", "Cymen Vig"]
|