Skip to content
Snippets Groups Projects
Commit 6961ef1a authored by Jan Provaznik's avatar Jan Provaznik Committed by Dennis Tang
Browse files

Fix cattr_accessor definition

Use cattr_accessor directly inside the defined class, otherwise
in Rails 5 this accessor returns nil.
parent 21e78957
No related branches found
No related tags found
2 merge requests!6393CE upstream - 2018-07-05 12:27 UTC,!6387Prepare 11.1 RC5 EE release
......@@ -7,9 +7,7 @@ def self.name
'Gitlab::Foo::Bar::DummyWorker'
end
class << self
cattr_accessor(:counter) { 0 }
end
cattr_accessor(:counter) { 0 }
include ApplicationWorker
prepend WaitableWorker
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment