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
|
||||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue