set activerecord whitelist_attributes to true
This commit is contained in:
parent
4629cc44d6
commit
83efcabc82
28 changed files with 100 additions and 44 deletions
|
@ -1,6 +1,9 @@
|
|||
class Event < ActiveRecord::Base
|
||||
include PushEvent
|
||||
|
||||
attr_accessible :project, :action, :data, :author_id, :project_id,
|
||||
:target_id, :target_type
|
||||
|
||||
default_scope where("author_id IS NOT NULL")
|
||||
|
||||
Created = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue