From d15673c3de02370585a27e9b4cc5fd144d8c0f8a Mon Sep 17 00:00:00 2001 From: Ilyaaaaaaaaaaaaa Zhitomirskiy Date: Mon, 4 Jul 2011 14:54:56 -0700 Subject: [PATCH] changed the variable name --- app/controllers/tags_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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