We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e2436f commit 27cf04cCopy full SHA for 27cf04c
1 file changed
lib/split/helper.rb
@@ -122,7 +122,7 @@ def ab_user
122
end
123
124
def exclude_visitor?
125
- instance_exec(request, &Split.configuration.ignore_filter) || is_ignored_ip_address? || is_robot? || is_preview?
+ defined?(request) && (instance_exec(request, &Split.configuration.ignore_filter) || is_ignored_ip_address? || is_robot? || is_preview?)
126
127
128
def is_robot?
0 commit comments