lib/rack/contrib/jsonp.rb in rack-rack-contrib-0.9.1 vs lib/rack/contrib/jsonp.rb in rack-rack-contrib-0.9.2

- old
+ new

@@ -31,10 +31,10 @@ # The Rack response spec indicates that it should be enumerable. The method # of combining all of the data into a single string makes sense since JSON # is returned as a full string. # def pad(callback, response, body = "") - response.each{ |s| body << s } + response.each{ |s| body << s.to_s } "#{callback}(#{body})" end end end