fix related tag update

This commit is contained in:
r888888888 2016-01-04 11:04:28 -08:00
parent 8208a2341e
commit 5fa1b7cb12
2 changed files with 4 additions and 1 deletions

View File

@ -384,3 +384,6 @@ DEPENDENCIES
vcr
webmock
whenever
BUNDLED WITH
1.10.0

View File

@ -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