lib/quickery/association_chain.rb in quickery-1.0.0 vs lib/quickery/association_chain.rb in quickery-1.1.0

- old
+ new

@@ -77,10 +77,10 @@ def dependee_record(from_record) raise ArgumentError, 'argument should be an instance of @model' unless from_record.is_a? model child_association_chains(include_self: true).inject(from_record) do |from_record, association_chain| if association_chain.belongs_to - from_record.send(association_chain.belongs_to.name) + from_record.send(association_chain.belongs_to.name) if from_record else from_record end end end