Commit 9ce7b4980cb974cf5b56c3805c2e25a5323d32ba

Authored by Pius Uzamere
1 parent 229ad2fe

do a hard assignment, no caching

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/question.rb
... ... @@ -31,7 +31,7 @@ class Question < ActiveRecord::Base
31 31 raise NotImplementedError.new("Sorry, we currently only support pairwise prompts. Rank of the prompt must be 2.") unless rank == 2
32 32 begin
33 33 choice_id_array = distinct_array_of_choice_ids(rank)
34   - @p ||= prompts.find_or_create_by_left_choice_id_and_right_choice_id(choice_id_array[0], choice_id_array[1], :include => [{ :left_choice => :item }, { :right_choice => :item }])
  34 + @p = prompts.find_or_create_by_left_choice_id_and_right_choice_id(choice_id_array[0], choice_id_array[1], :include => [{ :left_choice => :item }, { :right_choice => :item }])
35 35 logger.info "#{@p.inspect} is active? #{@p.active?}"
36 36 end until @p.active?
37 37 return @p
... ...