Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add config.bots to README

  • Loading branch information...
commit 042b40ee7b025c94881e51825aa0d223684bc22f 1 parent efe5331
@themgt themgt authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.mdown
View
4 README.mdown
@@ -248,7 +248,9 @@ You can override the default configuration options of Split like so:
```ruby
Split.configure do |config|
- config.robot_regex = /my_custom_robot_regex/
+ config.robot_regex = /my_custom_robot_regex/ # or
+ config.bots['newbot'] = "Description for bot with 'newbot' user agent, which will be added to config.robot_regex for exclusion"
+
config.ignore_ip_addresses << '81.19.48.130' # or regex: /81\.19\.48\.[0-9]+/
config.db_failover = true # handle redis errors gracefully
config.db_failover_on_db_error = proc{|error| Rails.logger.error(error.message) }
Please sign in to comment.
Something went wrong with that request. Please try again.