Skip to content

Commit

Permalink
Renamed option to needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 27, 2018
1 parent c0175d4 commit c7e069b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
## 2.0.1 [unreleased]

- Create visit for `visitable` if needed
- Added `:needed` option for server-side visits
- Better handling of visit duration and expiration in JavaScript
- Added `:manual` option for server-side visits

## 2.0.0

Expand Down
2 changes: 1 addition & 1 deletion lib/ahoy/database_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def visit

# if we don't have a visit, let's try to create one first
def visit_or_create
ahoy.track_visit if !visit && Ahoy.server_side_visits != :manual
ahoy.track_visit if !visit && Ahoy.server_side_visits
visit
end

Expand Down

0 comments on commit c7e069b

Please sign in to comment.