Merge pull request #268 from paulsponagl/issue_240

fix issue 240 by using slug to find content-type
This commit is contained in:
Mario Visic 2012-01-14 03:22:58 -08:00
commit 76b611b848
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ module Locomotive
content = content._parent.reload.contents.find(content._id) # target should be updated
associations.each do |association|
target_content_type = site.content_types.where(:name => association.target).first
target_content_type = site.content_types.where(:slug => association.target).first
next if target_content_type.nil?
@ -240,4 +240,4 @@ module Locomotive
end
end
end
end

Binary file not shown.