make fb_connect_async_js return a html_safe string for rails 3

This commit is contained in:
Reiner Dieterich 2010-08-17 12:50:52 +02:00
parent 2a326d141e
commit faabe06c39

View File

@ -31,8 +31,12 @@ module Facebooker2
s.appendChild(e); s.appendChild(e);
}()); }());
</script> </script>
JAVASCRIPT JAVASCRIPT
block_given? ? concat(js) : js if ::Rails::VERSION::STRING > "2"
js.html_safe
else
block_given? ? concat(js) : js
end
end end
end end
end end