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

@ -32,9 +32,13 @@ module Facebooker2
}()); }());
</script> </script>
JAVASCRIPT JAVASCRIPT
if ::Rails::VERSION::STRING > "2"
js.html_safe
else
block_given? ? concat(js) : js block_given? ? concat(js) : js
end end
end end
end end
end end
end end
end