adds magic number

This commit is contained in:
Juanjo Bazán
2015-09-13 18:59:46 +02:00
parent d4b3e8be94
commit 2eefdb2499

View File

@@ -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