adds the maximum length of the comments to settings

This commit is contained in:
palomahnhp
2016-03-03 15:17:36 +01:00
parent 2a4adc2e60
commit d786f9edea
3 changed files with 6 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ class Comment < ActiveRecord::Base
end
def self.body_max_length
1000
Setting['comments_body_max_length'].to_i
end
def calculate_confidence_score