Prevent mass assignment.
This commit is contained in:
parent
01925ea2a8
commit
5c5ed009cc
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
class BlogComment < ActiveRecord::Base
|
||||
|
||||
attr_accessible :name, :email, :message
|
||||
|
||||
filters_spam :author_field => :name,
|
||||
:email_field => :email,
|
||||
:message_field => :body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue