Do not call self-modifying Enumerable methods on AR::Relation objects
This commit is contained in:
parent
da9c1db14f
commit
35b17d8c4f
1 changed files with 2 additions and 2 deletions
|
|
@ -57,9 +57,9 @@ class TagsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def prep_tags_for_javascript
|
def prep_tags_for_javascript
|
||||||
@tags.map! do |tag|
|
@tags = @tags.map {|tag|
|
||||||
{ :name => ("#" + tag.name) }
|
{ :name => ("#" + tag.name) }
|
||||||
end
|
}
|
||||||
|
|
||||||
@tags << { :name => ('#' + params[:q]) }
|
@tags << { :name => ('#' + params[:q]) }
|
||||||
@tags.uniq!
|
@tags.uniq!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue