diff options
author | jomo <github@jomo.tv> | 2014-04-14 06:26:37 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2014-04-14 06:26:37 +0200 |
commit | 7135d2690cfde184a7d3593e23f4cae97f5c555d (patch) | |
tree | 6a60ecacbf6096e19e8953d31ae5cb3a8b7416eb /app/models/forumthread.rb | |
parent | b740c4db3a6b0c284c5f27122f56158ec774eca0 (diff) |
rails 4 and tons of stuff
Diffstat (limited to 'app/models/forumthread.rb')
-rw-r--r-- | app/models/forumthread.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/forumthread.rb b/app/models/forumthread.rb index 7fd34a5..0af46bd 100644 --- a/app/models/forumthread.rb +++ b/app/models/forumthread.rb @@ -4,7 +4,7 @@ class Forumthread < ActiveRecord::Base belongs_to :user_editor, class_name: "User", foreign_key: "user_editor_id" has_many :threadreplies - attr_accessible :title, :content, :sticky, :locked, :user_author, :user_editor, :forum + validates_presence_of :title, :author, :forum validates_presence_of :content |