lib/field_test/experiment.rb in field_test-0.2.3 vs lib/field_test/experiment.rb in field_test-0.2.4

- old
+ new

@@ -95,11 +95,11 @@ def results(goal: nil) goal ||= goals.first relation = memberships.group(:variant) - relation = relation.where("created_at >= ?", started_at) if started_at - relation = relation.where("created_at <= ?", ended_at) if ended_at + relation = relation.where("field_test_memberships.created_at >= ?", started_at) if started_at + relation = relation.where("field_test_memberships.created_at <= ?", ended_at) if ended_at if use_events? data = {} sql = relation.joins("LEFT JOIN field_test_events ON field_test_events.field_test_membership_id = field_test_memberships.id")