lib/field_test/helpers.rb in field_test-0.2.0 vs lib/field_test/helpers.rb in field_test-0.2.1
- old
+ new
@@ -26,10 +26,10 @@
def field_test_converted(experiment, options = {})
exp = FieldTest::Experiment.find(experiment)
participants = field_test_participants(options)
- exp.convert(participants)
+ exp.convert(participants, goal: options[:goal])
end
def field_test_experiments(options = {})
participants = field_test_participants(options)
memberships = FieldTest::Membership.where(participant: participants).group_by(&:participant)