debian-mirror-gitlab/lib/gitlab/cycle_analytics/summary/deploy.rb
2019-01-03 12:48:30 +05:30

15 lines
292 B
Ruby

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