From 8b5f4fac413e84ca34e16b2c8ca315794624a095 Mon Sep 17 00:00:00 2001 From: Luke Baker Date: Mon, 20 May 2013 13:13:29 -0400 Subject: [PATCH] Revert "modify visitor find_or_create_by" --- app/models/question.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/question.rb b/app/models/question.rb index 17c6fb5..70a24b1 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -183,7 +183,7 @@ class Question < ActiveRecord::Base if params[:with_prompt] if params[:with_appearance] && visitor_identifier.present? - visitor = Visitor.find_or_create_by_identifier_and_site_id(visitor_identifier, current_user.id) + visitor = current_user.visitors.find_or_create_by_identifier(visitor_identifier) last_appearance = get_first_unanswered_appearance(visitor) -- libgit2 0.21.2