disable Tag.find_or_create_by_name for single tag queries with no matching tag record

This commit is contained in:
albert
2013-03-31 18:27:32 -04:00
parent 0e052f2fd7
commit ce7d6bc0dd
2 changed files with 3 additions and 4 deletions

View File

@@ -49,8 +49,7 @@ module PostSetPresenters
if tag
tag.related_tag_array.map(&:first)
else
tag = Tag.find_or_create_by_name(post_set.tag_string)
tag.related_tag_array.map(&:first)
[]
end
end