diff options
author | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-04 12:55:19 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-08 08:43:09 +0100 |
commit | 591035968dc96acd27155ced4c0ae04649fcd113 (patch) | |
tree | 7bcbeae424b9b4875ad14ee047b16a2228b32e6f /lib | |
parent | 7e9109c43bdaedb79b06ba8948cd729ac5f68deb (diff) | |
download | gitlab-ce-591035968dc96acd27155ced4c0ae04649fcd113.tar.gz |
Duplicate options in `RepositoryPush`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/email/message/repository_push.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/email/message/repository_push.rb b/lib/gitlab/email/message/repository_push.rb index 3526eb2cad9..ca89b67e580 100644 --- a/lib/gitlab/email/message/repository_push.rb +++ b/lib/gitlab/email/message/repository_push.rb @@ -15,12 +15,12 @@ module Gitlab @notify = notify @project_id = project_id @recipient = recipient - @opts = opts + @opts = opts.dup @urls = Gitlab::Application.routes.url_helpers - @author_id = opts.delete(:author_id) - @ref = opts.delete(:ref) - @action = opts.delete(:action) + @author_id = @opts.delete(:author_id) + @ref = @opts.delete(:ref) + @action = @opts.delete(:action) end def project |