From a52ea70c3d71ba4075c641f9928a6079484c82c7 Mon Sep 17 00:00:00 2001 From: kikito Date: Fri, 16 Dec 2016 18:02:43 +0100 Subject: [PATCH] Fixes honeypot-related issues in specs --- app/controllers/budgets/investments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/budgets/investments_controller.rb b/app/controllers/budgets/investments_controller.rb index 803621cb8..38d8c7959 100644 --- a/app/controllers/budgets/investments_controller.rb +++ b/app/controllers/budgets/investments_controller.rb @@ -19,7 +19,7 @@ module Budgets has_orders %w{most_voted newest oldest}, only: :show has_orders ->(c){ c.instance_variable_get(:@budget).balloting? ? %w{random price} : %w{random confidence_score} }, only: :index - invisible_captcha only: [:create, :update], honeypot: :subtitle + invisible_captcha only: [:create, :update], honeypot: :subtitle, scope: :budget_investment respond_to :html, :js