{"action":"opened","issue":{"url":"https://api.github.com/repos/splitrb/split/issues/315","labels_url":"https://api.github.com/repos/splitrb/split/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/splitrb/split/issues/315/comments","events_url":"https://api.github.com/repos/splitrb/split/issues/315/events","html_url":"https://github.com/splitrb/split/issues/315","id":84150867,"number":315,"title":"Force use control in an ab_test","user":{"login":"tom-alcorn","id":8483583,"avatar_url":"https://avatars.githubusercontent.com/u/8483583?v=3","gravatar_id":"","url":"https://api.github.com/users/tom-alcorn","html_url":"https://github.com/tom-alcorn","followers_url":"https://api.github.com/users/tom-alcorn/followers","following_url":"https://api.github.com/users/tom-alcorn/following{/other_user}","gists_url":"https://api.github.com/users/tom-alcorn/gists{/gist_id}","starred_url":"https://api.github.com/users/tom-alcorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tom-alcorn/subscriptions","organizations_url":"https://api.github.com/users/tom-alcorn/orgs","repos_url":"https://api.github.com/users/tom-alcorn/repos","events_url":"https://api.github.com/users/tom-alcorn/events{/privacy}","received_events_url":"https://api.github.com/users/tom-alcorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-02T18:46:23Z","updated_at":"2015-06-02T18:46:23Z","closed_at":null,"body":"I would like to be able to force the ab_test to serve up the control alternative with a param like force_control=true, which would default to false.\r\n\r\nThis would help in situations where I only want to run the A/B test on certain types of users (in my case, differentiated by url params), without me having to mess around with the underlying experiment instance to get the control (I define all my experiments in experiments.yml, so I don't have access to the control alternative in the view where I'm calling ab_test).\r\n\r\nThe end result would look like this\r\n\r\n```ruby\r\nab_test \"my_totally_sweet_test\" force_control=test_inactive_for_user do\r\n  some_content\r\nend\r\n```"}}