Skip to content

Commit

Permalink
Use helper
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisandreae committed Jul 4, 2019
1 parent 78241a7 commit 9b9129b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view_model/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def context_for_child(member_name, context:)

# associations to roots start a new tree
member_data = self.class._members[member_name.to_s]
if member_data.is_a?(AssociationData) && member_data.referenced?
if member_data.association? && member_data.referenced?
return context.for_references
end

Expand Down

0 comments on commit 9b9129b

Please sign in to comment.