diff options
author | Jonas Folvik <Jonas-folvik@hotmail.com> | 2016-10-03 22:58:27 +0200 |
---|---|---|
committer | Jonas Folvik <Jonas-folvik@hotmail.com> | 2016-10-03 23:01:46 +0200 |
commit | 00fc8b3fcd10860abb70a57fb6aaab3c476259f2 (patch) | |
tree | aa442417cac3cbc492f62576cfe4b15c928c6fe5 | |
parent | e0ac5fac131342874c4e9f814a5943f38a39fa91 (diff) |
Changed the content length of forumthreads to 20k because Nemes
-rw-r--r-- | app/models/forumthread.rb | 4 |
1 files 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 |