lib/ahoy/stores/mongoid_store.rb in ahoy_matey-1.4.0 vs lib/ahoy/stores/mongoid_store.rb in ahoy_matey-1.4.1

- old
+ new

@@ -1,9 +1,9 @@ module Ahoy module Stores class MongoidStore < BaseStore def track_visit(options, &block) - visit = + @visit = visit_model.new do |v| v.id = binary(ahoy.visit_id) v.visitor_id = binary(ahoy.visitor_id) v.user = user if v.respond_to?(:user=) && user v.started_at = options[:started_at]