Skip to content

Commit

Permalink
Don't get fancy with the procs and maybe jruby will be happy
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Sep 21, 2014
1 parent 358fd42 commit 123f45f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neo4j/active_node/labels.rb
Expand Up @@ -71,7 +71,7 @@ def all
# Returns the object with the specified neo4j id.
# @param [String,Fixnum] id of node to find
def find(id)
map_id = -> (object) { object.respond_to?(:id) ? object.send(:id) : object }
map_id = Proc.new {|object| object.respond_to?(:id) ? object.send(:id) : object }

if id.is_a?(Array)
find_by_ids(id.map {|o| map_id.call(o) })
Expand Down

0 comments on commit 123f45f

Please sign in to comment.