mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 20:56:08 +10:00
Created tests and refactored some code along the way Added stat graph util spec, refactored code finsihed up tests and refactors finsihed up tests and refactors
14 lines
348 B
Ruby
14 lines
348 B
Ruby
class StatGraphController < ProjectResourceController
|
|
|
|
# Authorize
|
|
before_filter :authorize_read_project!
|
|
before_filter :authorize_code_access!
|
|
before_filter :require_non_empty_project
|
|
|
|
def show
|
|
@repo = @project.repository
|
|
@stats = Gitlab::GitStats.new(@repo.raw, @repo.root_ref)
|
|
@log = @stats.parsed_log.to_json
|
|
end
|
|
|
|
end |