2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'app/helpers/facebook_js_helper.rb', line 2
def facebook_js(opts={}, &block)
turbolink = opts[:turbolink] ? opts[:turbolink] : false
if block_given?
block = capture(&block)
else
block = nil
end
render partial: 'facebook_js_helper/facebook', locals: {
app_id: FacebookJs.app_id,
domain: FacebookJs.domain,
status: FacebookJs.status,
cookie: FacebookJs.cookie,
xfbml: FacebookJs.xfbml,
debug: FacebookJs.debug,
locale: FacebookJs.locale,
block: block,
turbolink: turbolink
}
end
|