From 00fc8b3fcd10860abb70a57fb6aaab3c476259f2 Mon Sep 17 00:00:00 2001 From: Jonas Folvik Date: Mon, 3 Oct 2016 22:58:27 +0200 Subject: Changed the content length of forumthreads to 20k because Nemes --- app/models/forumthread.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/forumthread.rb b/app/models/forumthread.rb index 892ef15..905e4d3 100644 --- a/app/models/forumthread.rb +++ b/app/models/forumthread.rb @@ -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 \ No newline at end of file +end -- cgit v1.2.3