Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove test and force old-style answer form.

  • Loading branch information...
commit 911b5a8bbd5e12249433ac97da983eb8032cd0a2 1 parent bc4fba0
@andlima andlima authored
View
3  app/views/questions/_answer_with_form.html.haml
@@ -2,7 +2,8 @@
.loader{:style => 'display: none;'}
= waiting_tag
- if logged_in? && !@question.closed
- - if ab_test(:link_only_answer_form) == :link_only_answer_form
+ -# hardcoded to false to use the old-style answer form:
+ - if false
= form_for(@search_result,
:url => question_search_results_path(@question.id, :format => :js),
:html => { :class => 'form bp',
View
3  app/views/search_results/_form.html.haml
@@ -2,7 +2,8 @@
= f.hidden_field(:group_id, :value => group_id)
= f.hidden_field(:user_id, :value => user_id)
-- if ab_test(:link_only_answer_form) == :link_only_answer_form
+-# hardcoded to false to use the old-style answer form:
+- if false
#search_result_area
= f.text_field(:url, :type => :url, :class => "link_only_answer_form",
:placeholder => t("search_results.add_link"))
View
5 experiments/link_only_answer_form.rb
@@ -1,5 +0,0 @@
-ab_test 'Link only answer form' do
- alternatives :full_answer_form, :link_only_answer_form
- metrics :new_search_result
- identify { |c| c.identifier(:exclude_guests => true) }
-end
Please sign in to comment.
Something went wrong with that request. Please try again.