diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index d4e6bdf04..8878460be 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -72,9 +72,9 @@ class TagsController < ApplicationController end def tag_followed? - if @tf.nil? - @tf = TagFollowing.joins(:tag).where(:tags => {:name => params[:name]}, :user_id => current_user.id).exists? #, + if @tag_followed.nil? + @tag_followed = TagFollowing.joins(:tag).where(:tags => {:name => params[:name]}, :user_id => current_user.id).exists? #, end - @tf + @tag_followed end end