Skip to content

Commit

Permalink
Merge pull request maxdemarzi#90 from kamranjon/integration
Browse files Browse the repository at this point in the history
returning empty array for plural links
  • Loading branch information
kamranjon committed Jan 13, 2014
2 parents 49b3402 + 963218d commit 0274ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/deja/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def link(node_alias)
if node_aliases[:form] == :singular
instance_variable_get("@#{node_aliases[:relationship]}_#{node_aliases[:direction]}").first
else
instance_variable_get("@#{node_aliases[:relationship]}_#{node_aliases[:direction]}")
(instance_variable_get("@#{node_aliases[:relationship]}_#{node_aliases[:direction]}") || [])
end
end

Expand Down

0 comments on commit 0274ba0

Please sign in to comment.