forked from e621ng/e621ng
fix related tag update
This commit is contained in:
parent
8208a2341e
commit
5fa1b7cb12
@ -384,3 +384,6 @@ DEPENDENCIES
|
||||
vcr
|
||||
webmock
|
||||
whenever
|
||||
|
||||
BUNDLED WITH
|
||||
1.10.0
|
||||
|
@ -13,7 +13,7 @@ class RelatedTagsController < ApplicationController
|
||||
|
||||
def update
|
||||
@tag = Tag.find_by_name(params[:name])
|
||||
@tag.related_tags = params[:related_tags].scan(/\S+/).in_groups_of(2)
|
||||
@tag.related_tags = params[:related_tags]
|
||||
@tag.related_tags_updated_at = Time.now
|
||||
@tag.save
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user