summaryrefslogtreecommitdiff
path: root/app/models/key.rb
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-09-26 11:17:17 -0700
committerNihad Abbasov <narkoz.2008@gmail.com>2012-09-26 11:18:35 -0700
commit83efcabc829083f11553df0f1eb67a8fbbc3e000 (patch)
tree2017dc24ab9630ad9a227dffde27550ededcc92f /app/models/key.rb
parent4629cc44d6b7fa7ebdec8ce47bb0825e255d7763 (diff)
downloadgitlab-ce-83efcabc829083f11553df0f1eb67a8fbbc3e000.tar.gz
set activerecord whitelist_attributes to true
Diffstat (limited to 'app/models/key.rb')
-rw-r--r--app/models/key.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/key.rb b/app/models/key.rb
index a39a4a16c22..e23447e6aea 100644
--- a/app/models/key.rb
+++ b/app/models/key.rb
@@ -4,7 +4,7 @@ class Key < ActiveRecord::Base
belongs_to :user
belongs_to :project
- attr_protected :user_id
+ attr_accessible :key, :title
validates :title,
presence: true,