ahoy_matey 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ahoy/database_store.rb +1 -1
- data/lib/ahoy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 849e414e4b8b04c7bf3f9b24bc6266b4aaa456862a8fe7dd4a1ff153ae86187c
|
4
|
+
data.tar.gz: 685e01e6b50b7a9243da4d4184b41d39ee328cc85b27e5af8e4edc5285e665a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5d139e886eb0fd9ae8c29acb0b0d3bec7e7b079825d38eeebb4df14427ed4102a98c08caa3dd7d5886db8edbae8e95307fb58da281615c3c54f98a841d49864
|
7
|
+
data.tar.gz: f22e58183541c3075df962c2f13120b8748bf17bc212fa44719e2ce78d2bed7913ad9325f18ee3e3b39accbd480500c8d9b43d5f8e4e0d4bf95633b783696989
|
data/CHANGELOG.md
CHANGED
data/lib/ahoy/database_store.rb
CHANGED
@@ -53,7 +53,7 @@ module Ahoy
|
|
53
53
|
|
54
54
|
def visit
|
55
55
|
unless defined?(@visit)
|
56
|
-
if ahoy.send(:existing_visit_token)
|
56
|
+
if ahoy.send(:existing_visit_token) || ahoy.instance_variable_get(:@visit_token)
|
57
57
|
# find_by raises error by default with Mongoid when not found
|
58
58
|
@visit = visit_model.where(visit_token: ahoy.visit_token).take if ahoy.visit_token
|
59
59
|
elsif !Ahoy.cookies? && ahoy.visitor_token
|
data/lib/ahoy/version.rb
CHANGED