set activerecord whitelist_attributes to true
This commit is contained in:
parent
4629cc44d6
commit
83efcabc82
28 changed files with 100 additions and 44 deletions
|
@ -4,7 +4,7 @@ class Key < ActiveRecord::Base
|
|||
belongs_to :user
|
||||
belongs_to :project
|
||||
|
||||
attr_protected :user_id
|
||||
attr_accessible :key, :title
|
||||
|
||||
validates :title,
|
||||
presence: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue