summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2018-04-18 08:15:02 +0000
committerRémy Coutable <remy@rymai.me>2018-04-18 08:15:02 +0000
commit18c2b062682625a34cf169a60d6d997280f9fdc1 (patch)
tree51ed96510315853ee75702ab351f8eef04241994 /lib
parent9a5765bfde2c49e5618a41f18ea8decb6d778bbc (diff)
downloadgitlab-ce-18c2b062682625a34cf169a60d6d997280f9fdc1.tar.gz
[Rails5] Remove `as` keyword from `Gitlab:Ci:Trace:Stream.delegate :valid?`
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/ci/trace/stream.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/ci/trace/stream.rb b/lib/gitlab/ci/trace/stream.rb
index 54894a46077..8f7600f60c6 100644
--- a/lib/gitlab/ci/trace/stream.rb
+++ b/lib/gitlab/ci/trace/stream.rb
@@ -10,7 +10,9 @@ module Gitlab
delegate :close, :tell, :seek, :size, :url, :truncate, to: :stream, allow_nil: true
- delegate :valid?, to: :stream, as: :present?, allow_nil: true
+ delegate :valid?, to: :stream, allow_nil: true
+
+ alias_method :present?, :valid?
def initialize
@stream = yield