This commit is contained in:
2023-02-03 11:48:09 +11:00
parent 10879cd092
commit ac4ff38dba

View File

@@ -31,7 +31,7 @@ module Adamantium
tags.each do |tag_name|
next if tag_name == ""
tag = post.tags.where(label: tag_name).one ||
tag = posts.tags.where(label: tag_name).one ||
post
.tags
.changeset(:create, {label: tag_name, slug: tag_name.downcase.strip.tr(" ", "-").gsub(/[^\w-]/, "")})