tarteaucitron 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tarteaucitron/version.rb +1 -1
- data/lib/tarteaucitron/view_helpers.rb +4 -4
- metadata +1 -1
@@ -16,21 +16,21 @@ module Tarteaucitron
|
|
16
16
|
"removeCredit"=> false,
|
17
17
|
}
|
18
18
|
script = "tarteaucitron.init(#{default.to_json});"
|
19
|
-
if options
|
19
|
+
if options["google_analytics"]
|
20
20
|
script += "tarteaucitron.user.gajsUa = '#{options["google_analytics"]}';"
|
21
21
|
script += "tarteaucitron.user.gajsMore = function () {};"
|
22
22
|
script += "(tarteaucitron.job = tarteaucitron.job || []).push('gajs');"
|
23
23
|
end
|
24
24
|
|
25
|
-
if options
|
25
|
+
if options["facebook"]
|
26
26
|
script += "(tarteaucitron.job = tarteaucitron.job || []).push('facebook');"
|
27
27
|
end
|
28
28
|
|
29
|
-
if options
|
29
|
+
if options["googleplus"]
|
30
30
|
script += "(tarteaucitron.job = tarteaucitron.job || []).push('gplus');"
|
31
31
|
end
|
32
32
|
|
33
|
-
if options
|
33
|
+
if options["twitter"]
|
34
34
|
script += "(tarteaucitron.job = tarteaucitron.job || []).push('twitter');"
|
35
35
|
end
|
36
36
|
|