From 2eefdb2499cc1cb20deee685034cf2d1c51a6178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Sun, 13 Sep 2015 18:59:46 +0200 Subject: [PATCH] adds magic number --- app/models/proposal.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/proposal.rb b/app/models/proposal.rb index 8337b5bd2..bfc031445 100644 --- a/app/models/proposal.rb +++ b/app/models/proposal.rb @@ -93,6 +93,10 @@ class Proposal < ActiveRecord::Base terms.present? ? where("title ILIKE ? OR description ILIKE ? OR question ILIKE ?", "%#{terms}%", "%#{terms}%", "%#{terms}%") : none end + def self.votes_needed_for_success + 53726 + end + protected def sanitize_description