a_la_chart 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/a_la_chart.rb +1 -1
- data/lib/a_la_chart/a_la_chart_helper.rb +6 -1
- metadata +1 -1
data/lib/a_la_chart.rb
CHANGED
@@ -65,7 +65,12 @@ module ALaChartHelper
|
|
65
65
|
|
66
66
|
def decode_options(options_str)
|
67
67
|
hash = Hash[ *(options_str.to_s.split(/[|~]/)) ]
|
68
|
-
hash.each{|k,v|
|
68
|
+
hash.each{|k,v|
|
69
|
+
val = hash.delete(k)
|
70
|
+
if val && k.class == String && !k.blank?
|
71
|
+
hash[CGI::unescape(k).to_sym] = CGI::unescape(val.to_s)
|
72
|
+
end
|
73
|
+
}
|
69
74
|
hash
|
70
75
|
end
|
71
76
|
|