Created
September 1, 2012 19:54
-
-
Save dreverri/3585359 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ripple' | |
class Foo | |
include Ripple::Document | |
property :bar, String | |
end | |
Foo.bucket.allow_mult = true | |
foo = Foo.new(:bar => "bar") | |
foo.save! | |
foo1 = Foo.find(foo.key) | |
foo2 = Foo.find(foo.key) | |
foo1.bar = "baz" | |
foo1.save! | |
foo2.bar = "qux" | |
foo2.save! | |
foo3 = Foo.find(foo.key) | |
foo3.save! | |
foo4 = Foo.find(foo.key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment