abongo 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/abongo/sugar.rb +1 -1
- data/lib/abongo/version.rb +1 -1
- data/lib/abongo/view_helper.rb +1 -1
- metadata +2 -2
data/lib/abongo/sugar.rb
CHANGED
@@ -12,7 +12,7 @@ class Abongo
|
|
12
12
|
elsif (Abongo.options[:enable_override_in_session] && !session[test_name].nil?)
|
13
13
|
choice = session[test_name]
|
14
14
|
elsif (Abongo.options[:enable_selection] && !params[test_name].nil?)
|
15
|
-
choice = alternatives[params[test_name].to_i]
|
15
|
+
choice = Abongo.parse_alternatives(alternatives)[params[test_name].to_i]
|
16
16
|
elsif (alternatives.nil?)
|
17
17
|
begin
|
18
18
|
choice = Abongo.flip(test_name, options)
|
data/lib/abongo/version.rb
CHANGED
data/lib/abongo/view_helper.rb
CHANGED
@@ -10,7 +10,7 @@ class Abongo
|
|
10
10
|
elsif (Abongo.options[:enable_override_in_session] && !session[test_name].nil?)
|
11
11
|
choice = session[test_name]
|
12
12
|
elsif (Abongo.options[:enable_selection] && !params[test_name].nil?)
|
13
|
-
choice = alternatives[params[test_name].to_i]
|
13
|
+
choice = Abongo.parse_alternatives(alternatives)[params[test_name].to_i]
|
14
14
|
elsif (alternatives.nil?)
|
15
15
|
begin
|
16
16
|
choice = Abongo.flip(test_name, options)
|