Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Mar 18, 2015
1 parent ccd1fdb commit d562050
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/neo4j/active_node/dependent/query_proxy_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ def unique_nodes(association, self_identifer, other_node, other_rel)

primary_rel = association.arrow_cypher

query.with(identity).proxy_as_optional(caller.class, self_identifer).
send(association.name, other_node, other_rel).
query.
with(other_node).
match("()#{primary_rel}(#{other_node})").
with(other_node, count: 'count(*)').
where('count = 1').
proxy_as(association.target_class, other_node)
query.with(identity).proxy_as_optional(caller.class, self_identifer)
.send(association.name, other_node, other_rel)
.query
.with(other_node)
.match("()#{primary_rel}(#{other_node})")
.with(other_node, count: 'count(*)')
.where('count = 1')
.proxy_as(association.target_class, other_node)
end
end
end
Expand Down

0 comments on commit d562050

Please sign in to comment.