summaryrefslogtreecommitdiff
path: root/app/models/gpg_signature.rb
diff options
context:
space:
mode:
authorRubén Dávila <ruben@gitlab.com>2017-09-29 17:55:36 -0500
committerRubén Dávila <ruben@gitlab.com>2017-10-05 08:25:27 -0500
commitc50725fecfb776d56c95ef070940ca6c85786ecf (patch)
tree86695f75d9f3ef3595ed1970ccb960898098cba7 /app/models/gpg_signature.rb
parentc2c35ae7971d19396078bdec6474fdd58f66000c (diff)
downloadgitlab-ce-c50725fecfb776d56c95ef070940ca6c85786ecf.tar.gz
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