debian-mirror-gitlab/gitlab-peek/test/dummy/lib/test_view.rb
2019-12-06 12:11:25 +05:30

18 lines
287 B
Ruby

require 'concurrent/atomics'
class TestView < Peek::Views::View
class << self
attr_accessor :counter
end
self.counter = Concurrent::AtomicFixnum.new
def results
{
number: self.class.counter.increment
}
end
def partial_path
"peek/test_view"
end
end