make fb_connect_async_js return a html_safe string for rails 3
This commit is contained in:
parent
2a326d141e
commit
faabe06c39
@ -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
|
Loading…
Reference in New Issue
Block a user