Skip to content

Instantly share code, notes, and snippets.

@dreverri
Created September 1, 2012 19:54
Show Gist options
  • Save dreverri/3585359 to your computer and use it in GitHub Desktop.
Save dreverri/3585359 to your computer and use it in GitHub Desktop.
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