changed the variable name

This commit is contained in:
Ilyaaaaaaaaaaaaa Zhitomirskiy 2011-07-04 14:54:56 -07:00
parent f0d9d318e8
commit d15673c3de

View file

@ -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