Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2017-09-30 01:55:36 +0300
committerRubén Dávila <ruben@gitlab.com>2017-10-05 16:25:27 +0300
commitc50725fecfb776d56c95ef070940ca6c85786ecf (patch)
tree86695f75d9f3ef3595ed1970ccb960898098cba7 /app/models/gpg_signature.rb
parentc2c35ae7971d19396078bdec6474fdd58f66000c (diff)
Address feedback from last code review
Diffstat (limited to 'app/models/gpg_signature.rb')
-rw-r--r--app/models/gpg_signature.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/gpg_signature.rb b/app/models/gpg_signature.rb
index c7f75288407..d3cca19cea8 100644
--- a/app/models/gpg_signature.rb
+++ b/app/models/gpg_signature.rb
@@ -24,7 +24,7 @@ class GpgSignature < ActiveRecord::Base
def gpg_key=(model)
case model
when GpgKey then super
- when GpgKeySubkey then write_attribute(:gpg_key_subkey_id, model.id)
+ when GpgKeySubkey then self.gpg_key_subkey = model
end
end