Skip to content

Instantly share code, notes, and snippets.

@duff
Created June 17, 2010 19:49
Show Gist options
  • Save duff/442682 to your computer and use it in GitHub Desktop.
Save duff/442682 to your computer and use it in GitHub Desktop.
Temporary hack to whack the Riak database between cuke runs.
module Ripple
module Document
def self.included(mod)
all << mod
end
def self.all
@document_models ||= []
end
end
end
After do
Ripple::Document.all.each { |each| each.destroy_all }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment