Browse files

Update readme.markdown

  • Loading branch information...
1 parent 33822cf commit 6644ff2c5ce3943d0aebc554e161e514d1899a39 Karl Seguin committed Jan 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 readme.markdown
@@ -15,7 +15,7 @@ Configure MongoLight via `MongoLight.configure`:
This'll automatically handle Passenger forking issues (if Passenger is running).
-## replica cocnern and testing ##
+## replica concern and testing ##
For safe writes, I like to use `w:majority`. However, MongoDB will raise an exception if you use this while not using replica sets. This can make testing code more of a pain than necessary. If you configure MongoLight with `config.skip_replica_concern = true`, then `:w => X` or `:w => :majority` will automatically be stripped when calling `save(:w => majority)` or `save!(:w => 3)`. (For example, you could do `config.skip_replica_concern = Rails.env.test?`)
## Documents ##

0 comments on commit 6644ff2

Please sign in to comment.