trueandco_analytics 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trueandco_analytics/config/params.rb +7 -2
- data/lib/trueandco_analytics/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fef72a2fa99a4c541a73e17070841802585efe9d
|
4
|
+
data.tar.gz: cb5413156e06f8a00b70bdb1f9947a86c22cf204
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7376c24d0251350d458951104823150d897443d0a97000673a5042e8fc1acc9ba44ffc029466fc4cdc652815eb93f44540c017deb0552031764130a00d1fc7c2
|
7
|
+
data.tar.gz: 1559c7b5dc3838a0435144274afc2676ae24b4c96dc0616fafef10d0113c59a1d9b8cc9f885a9d96951c8b7595f6c176824355e9ffb3f7355120b6f9a19c7568
|
@@ -56,8 +56,13 @@ module TrueandcoAnalytics
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def user_method
|
59
|
-
|
60
|
-
|
59
|
+
emulation_user = OpenStruct.new(id: nil, name: '', email: '')
|
60
|
+
return emulation_user unless @user_method_check
|
61
|
+
begin
|
62
|
+
::ApplicationController.new.send(@user_method)
|
63
|
+
rescue StandardError => e
|
64
|
+
emulation_user
|
65
|
+
end
|
61
66
|
end
|
62
67
|
|
63
68
|
def log
|