Commit 8b5f4fac413e84ca34e16b2c8ca315794624a095
1 parent
0eef0ab4
Exists in
master
and in
1 other branch
Revert "modify visitor find_or_create_by"
This reverts commit a8059a3aca6ea77e522bef0df2499df1ee8b9cce.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/question.rb
... | ... | @@ -183,7 +183,7 @@ class Question < ActiveRecord::Base |
183 | 183 | if params[:with_prompt] |
184 | 184 | |
185 | 185 | if params[:with_appearance] && visitor_identifier.present? |
186 | - visitor = Visitor.find_or_create_by_identifier_and_site_id(visitor_identifier, current_user.id) | |
186 | + visitor = current_user.visitors.find_or_create_by_identifier(visitor_identifier) | |
187 | 187 | |
188 | 188 | last_appearance = get_first_unanswered_appearance(visitor) |
189 | 189 | ... | ... |