Skip to content

Commit

Permalink
fixed a test
Browse files Browse the repository at this point in the history
  • Loading branch information
elado committed Jan 8, 2013
1 parent ead47a6 commit edde093
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
## v0.1 ## v0.1.1


* Added batch support, for much faster intiialization of current DB or reindexing all DB. * Added batch support, for much faster intiialization of current DB or reindexing all DB.
* Dropped indexes per model, instead, using `node_auto_index` and `relationship_auto_index`, letting Neo4j auto index objects. * Dropped indexes per model, instead, using `node_auto_index` and `relationship_auto_index`, letting Neo4j auto index objects.
Expand Down
4 changes: 2 additions & 2 deletions lib/neoid/batch.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def process_results(results)
# so a `.then` can be chained after the batch do ... end # so a `.then` can be chained after the batch do ... end
# it proxies all methods to the result # it proxies all methods to the result
class BatchPromiseProxy class BatchPromiseProxy
def initialize(*results) def initialize(results)
@results = results @results = results
end end


Expand All @@ -128,7 +128,7 @@ def method_missing(method, *args)
end end


def then def then
yield(*@results) yield(@results)
end end
end end


Expand Down
2 changes: 1 addition & 1 deletion lib/neoid/version.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,3 @@
module Neoid module Neoid
VERSION = "0.1" VERSION = "0.1.1"
end end

0 comments on commit edde093

Please sign in to comment.