Skip to content

Commit

Permalink
Merge pull request maxdemarzi#23 from blizkreeg/models
Browse files Browse the repository at this point in the history
always return end node
  • Loading branch information
blizkreeg committed Aug 23, 2013
2 parents 06d4a42 + b48aa16 commit 9fef1c0
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 @@ -66,7 +66,7 @@ def define_alias_methods(rel, aliases)

define_method "#{aliases[:in_plural]}=" do |relationship|
current_rel = instance_variable_get("@#{rel}") || []
current_rel << [relationship.start_node, relationship]
current_rel << [relationship.end_node, relationship]
instance_variable_set("@#{rel}", current_rel)
end

Expand Down

0 comments on commit 9fef1c0

Please sign in to comment.