moves magic number to Settings

This commit is contained in:
Juanjo Bazán
2015-09-14 13:37:16 +02:00
parent 47ebc41c69
commit 074ae995f4
5 changed files with 9 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ class Proposal < ActiveRecord::Base
end
def self.votes_needed_for_success
53726
Setting.value_for('votes_for_proposal_success').to_i
end
protected