Better method names [skip ci]
Andrew
committed May 02, 2018
commit 5e71e28d820810f6f3b2f9521bb6fa9ac1c0bcd3
Showing 1
changed file with
6 additions
and 6 deletions
ahoy/tracker.rb b/lib/ahoy/tracker.rb
+6
-6
| @@ | @@ -207,7 +207,7 @@ module Ahoy |
| def visit_token_helper | |
| @visit_token_helper ||= begin | |
| token = existing_visit_token | |
| - | token ||= visit_hash unless Ahoy.cookies |
| + | token ||= visit_anonymity_set unless Ahoy.cookies |
| token ||= generate_id unless Ahoy.api_only | |
| token | |
| end | |
| @@ | @@ -216,7 +216,7 @@ module Ahoy |
| def visitor_token_helper | |
| @visitor_token_helper ||= begin | |
| token = existing_visitor_token | |
| - | token ||= visitor_hash unless Ahoy.cookies |
| + | token ||= visitor_anonymity_set unless Ahoy.cookies |
| token ||= generate_id unless Ahoy.api_only | |
| token | |
| end | |
| @@ | @@ -240,12 +240,12 @@ module Ahoy |
| end | |
| end | |
| - | def visit_hash |
| - | @visit_hash ||= Digest::UUID.uuid_v5(UUID_NAMESPACE, ["visit", Ahoy.mask_ip(request.remote_ip), request.user_agent].join("/")) |
| + | def visit_anonymity_set |
| + | @visit_anonymity_set ||= Digest::UUID.uuid_v5(UUID_NAMESPACE, ["visit", Ahoy.mask_ip(request.remote_ip), request.user_agent].join("/")) |
| end | |
| - | def visitor_hash |
| - | @visitor_hash ||= Digest::UUID.uuid_v5(UUID_NAMESPACE, ["visitor", Ahoy.mask_ip(request.remote_ip), request.user_agent].join("/")) |
| + | def visitor_anonymity_set |
| + | @visitor_anonymity_set ||= Digest::UUID.uuid_v5(UUID_NAMESPACE, ["visitor", Ahoy.mask_ip(request.remote_ip), request.user_agent].join("/")) |
| end | |
| def visit_cookie | |