adds the maximum length of the comments to settings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -24,6 +24,8 @@ Setting.create(key: 'feature.twitter_login', value: "true")
|
||||
Setting.create(key: 'feature.facebook_login', value: "true")
|
||||
Setting.create(key: 'feature.google_login', value: "true")
|
||||
|
||||
Setting.create(key: 'comments_body_max_length', value: '1000')
|
||||
|
||||
puts "Creating Geozones"
|
||||
('A'..'Z').each{ |i| Geozone.create(name: "District #{i}") }
|
||||
|
||||
|
||||
@@ -57,3 +57,6 @@ Setting['feature.twitter_login'] = true
|
||||
Setting['feature.facebook_login'] = true
|
||||
Setting['feature.google_login'] = true
|
||||
Setting['feature.public_stats'] = true
|
||||
|
||||
# Max length for comments
|
||||
Setting['comments_body_max_length'] = 1000
|
||||
|
||||
Reference in New Issue
Block a user