Changed the content length of forumthreads to 20k because Nemes #11

Merged
ThatSimplex merged 1 commits from contentlength into master 2016-10-14 04:59:24 -04:00

View File

@@ -11,7 +11,7 @@ class Forumthread < ActiveRecord::Base
validates_presence_of :title, :author, :forum
validates_presence_of :content
validates_length_of :content, in: 5..10000
validates_length_of :content, in: 5..20000
accepts_nested_attributes_for :threadreplies
@@ -65,4 +65,4 @@ class Forumthread < ActiveRecord::Base
def to_param
[id, to_s.parameterize].join("-")
end
end
end