Skip to content

Commit

Permalink
Initialize the child_key for all types of relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Kubb committed Oct 5, 2008
1 parent dfa717b commit 52c727f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merb_datamapper/lib/merb_datamapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def self.run
descendants.merge(model.descendants) if model.respond_to?(:descendants)
end
descendants.each do |model|
model.many_to_one_relationships.each { |r| r.child_key }
model.relationships.each_value { |r| r.child_key }
end

Merb.logger.debug 'Merb::Orms::DataMapper::Associations complete'
Expand Down

0 comments on commit 52c727f

Please sign in to comment.