Skip to content

Commit

Permalink
Small README tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
alindeman committed Jul 6, 2011
1 parent 6aacecc commit b096d1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -49,9 +49,13 @@ any time you save a model with optimistic locking functionality:

``` ruby
begin
# .. making modifications to blog_post ..
blog_post.save
rescue MongoMapper::StaleDocumentError
# Reload, remodify, and resave
# e.g.:
blog_post.reload
retry
end
```

Expand Down Expand Up @@ -79,4 +83,4 @@ The above copyright notice and this permission notice shall be included in all c

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

![Readme.meme](http://i.imgur.com/W3Gob.png)
![Readme.meme](http://i.imgur.com/W3Gob.png)

0 comments on commit b096d1b

Please sign in to comment.