Do not call self-modifying Enumerable methods on AR::Relation objects

This commit is contained in:
Jonne Haß 2014-02-10 01:14:20 +01:00
parent da9c1db14f
commit 35b17d8c4f

View file

@ -57,9 +57,9 @@ class TagsController < ApplicationController
end
def prep_tags_for_javascript
@tags.map! do |tag|
@tags = @tags.map {|tag|
{ :name => ("#" + tag.name) }
end
}
@tags << { :name => ('#' + params[:q]) }
@tags.uniq!