Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 27, 2018
1 parent 1368c36 commit 2f5f21d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ahoy/database_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ def track_visit(data)
@visit = visit_model.create!(slice_data(visit_model, data))
rescue => e
raise e unless unique_exception?(e)

# so next call to visit will try to fetch from DB
remove_instance_variable(:@visit)
end

Expand Down

0 comments on commit 2f5f21d

Please sign in to comment.