diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-26 11:17:17 -0700 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2012-09-26 11:18:35 -0700 |
commit | 83efcabc829083f11553df0f1eb67a8fbbc3e000 (patch) | |
tree | 2017dc24ab9630ad9a227dffde27550ededcc92f /app/models/protected_branch.rb | |
parent | 4629cc44d6b7fa7ebdec8ce47bb0825e255d7763 (diff) | |
download | gitlab-ce-83efcabc829083f11553df0f1eb67a8fbbc3e000.tar.gz |
set activerecord whitelist_attributes to true
Diffstat (limited to 'app/models/protected_branch.rb')
-rw-r--r-- | app/models/protected_branch.rb | 2 |
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 |