set activerecord whitelist_attributes to true
This commit is contained in:
parent
4629cc44d6
commit
83efcabc82
28 changed files with 100 additions and 44 deletions
|
@ -6,11 +6,11 @@ class UsersProject < ActiveRecord::Base
|
|||
DEVELOPER = 30
|
||||
MASTER = 40
|
||||
|
||||
attr_accessible :user, :user_id, :project_access
|
||||
|
||||
belongs_to :user
|
||||
belongs_to :project
|
||||
|
||||
attr_protected :project_id, :project
|
||||
|
||||
after_save :update_repository
|
||||
after_destroy :update_repository
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue