Skip to content

Commit

Permalink
Update readme.markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Seguin committed Jan 22, 2012
1 parent 33822cf commit 6644ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.markdown
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Configure MongoLight via `MongoLight.configure`:


This'll automatically handle Passenger forking issues (if Passenger is running). 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?`) 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 ## ## Documents ##
Expand Down

0 comments on commit 6644ff2

Please sign in to comment.