debian-mirror-gitlab/lib/gitlab/cycle_analytics/summary/deploy.rb
2018-12-23 12:14:25 +05:30

17 lines
323 B
Ruby

# frozen_string_literal: true
module Gitlab
module CycleAnalytics
module Summary
class Deploy < Base
def title
n_('Deploy', 'Deploys', value)
end
def value
@value ||= @project.deployments.where("created_at > ?", @from).count
end
end
end
end
end