[#345] fix mass-assign protected attributes for Subscribe: user_id

This commit is contained in:
Alexander Machehin 2014-03-19 21:43:58 +06:00
parent 751924c464
commit f33296c266
1 changed files with 1 additions and 1 deletions

View File

@ -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'