[#345] fix mass-assign protected attributes for Subscribe: user_id
This commit is contained in:
parent
751924c464
commit
f33296c266
|
@ -3,7 +3,7 @@ class Subscribe < ActiveRecord::Base
|
|||
belongs_to :user
|
||||
belongs_to :project
|
||||
|
||||
attr_accessible :status
|
||||
attr_accessible :status, :user_id
|
||||
|
||||
def commit_subscribe?
|
||||
subscribeable_type == 'Grit::Commit'
|
||||
|
|
Loading…
Reference in New Issue