Skip to content

Commit

Permalink
Merge pull request neoid-gem#36 from minsikzzang/master
Browse files Browse the repository at this point in the history
removed 'start_node = Neoid.db.get_root' in NeodatabaseCleaner
  • Loading branch information
elado committed Mar 29, 2014
2 parents edf4840 + 747379a commit 3891b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neoid/database_cleaner.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Neoid
class NeoDatabaseCleaner
def self.clean_db(start_node = Neoid.db.get_root)
def self.clean_db()
Neoid.db.execute_script <<-GREMLIN
g.V.toList().each { if (it.id != 0) g.removeVertex(it) }
g.indices.each { g.dropIndex(it.indexName); }
Expand Down

0 comments on commit 3891b98

Please sign in to comment.