diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-12-08 09:24:24 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-12-08 09:24:24 +0200 |
commit | 5c5ed009cc5b9f99f7470522c60c2d6715c8661c (patch) | |
tree | 1ed60daeb63d038a7156ac375dfd141c86f7c3fe /app/models | |
parent | 01925ea2a8ebada732e31e533fefb343a35327b3 (diff) | |
download | refinerycms-blog-5c5ed009cc5b9f99f7470522c60c2d6715c8661c.tar.gz refinerycms-blog-5c5ed009cc5b9f99f7470522c60c2d6715c8661c.tar.bz2 refinerycms-blog-5c5ed009cc5b9f99f7470522c60c2d6715c8661c.zip |
Prevent mass assignment.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/blog_comment.rb | 2 |
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 |