aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2010-12-08 09:24:24 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2010-12-08 09:24:24 +0200
commit5c5ed009cc5b9f99f7470522c60c2d6715c8661c (patch)
tree1ed60daeb63d038a7156ac375dfd141c86f7c3fe /app
parent01925ea2a8ebada732e31e533fefb343a35327b3 (diff)
downloadrefinerycms-blog-5c5ed009cc5b9f99f7470522c60c2d6715c8661c.tar.gz
refinerycms-blog-5c5ed009cc5b9f99f7470522c60c2d6715c8661c.tar.bz2
refinerycms-blog-5c5ed009cc5b9f99f7470522c60c2d6715c8661c.zip
Prevent mass assignment.
Diffstat (limited to 'app')
-rw-r--r--app/models/blog_comment.rb2
1 files changed, 2 insertions, 0 deletions
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