Browse files

fixing frozen array error when using default memory cache store

  • Loading branch information...
1 parent dede339 commit 454ff30c78461330095a4b55edb4f6768047c001 @ryanb committed May 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/abingo.rb
View
2 lib/abingo.rb
@@ -92,7 +92,7 @@ def self.test(test_name, alternatives, options = {})
#Set this user to participate in this experiment, and increment participants count.
if options[:multiple_participation] || !(participating_tests.include?(test_name))
unless participating_tests.include?(test_name)
- participating_tests << test_name
+ participating_tests = participating_tests + [test_name]
Abingo.cache.write("Abingo::participating_tests::#{Abingo.identity}", participating_tests)
end
Abingo::Alternative.score_participation(test_name)

0 comments on commit 454ff30

Please sign in to comment.