summaryrefslogtreecommitdiff
path: root/app/models/protected_branch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/protected_branch.rb')
-rw-r--r--app/models/protected_branch.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/protected_branch.rb b/app/models/protected_branch.rb
index 7c30f7a0b6d..4ea083c17e3 100644
--- a/app/models/protected_branch.rb
+++ b/app/models/protected_branch.rb
@@ -1,6 +1,8 @@
class ProtectedBranch < ActiveRecord::Base
include GitHost
+ attr_accessible :name
+
belongs_to :project
validates_presence_of :project_id
validates_presence_of :name