From 5c5ed009cc5b9f99f7470522c60c2d6715c8661c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Wed, 8 Dec 2010 09:24:24 +0200 Subject: Prevent mass assignment. --- app/models/blog_comment.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app') diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb index 8ab1cf3..015b96d 100644 --- a/app/models/blog_comment.rb +++ b/app/models/blog_comment.rb @@ -1,5 +1,7 @@ class BlogComment < ActiveRecord::Base + attr_accessible :name, :email, :message + filters_spam :author_field => :name, :email_field => :email, :message_field => :body -- cgit v1.2.3