fix related tag update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user