changed the variable name
This commit is contained in:
parent
f0d9d318e8
commit
d15673c3de
1 changed files with 3 additions and 3 deletions
|
|
@ -72,9 +72,9 @@ class TagsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def tag_followed?
|
def tag_followed?
|
||||||
if @tf.nil?
|
if @tag_followed.nil?
|
||||||
@tf = TagFollowing.joins(:tag).where(:tags => {:name => params[:name]}, :user_id => current_user.id).exists? #,
|
@tag_followed = TagFollowing.joins(:tag).where(:tags => {:name => params[:name]}, :user_id => current_user.id).exists? #,
|
||||||
end
|
end
|
||||||
@tf
|
@tag_followed
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue