blob: 33dbc8699965ee1997f2bd5f391e6a0bd5767fa4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# Controller for viewing a file's blame
class Projects::BlobController < Projects::ApplicationController
include ExtractsPath
# Authorize
before_filter :authorize_read_project!
before_filter :authorize_code_access!
before_filter :require_non_empty_project
def show
@blob = Gitlab::Git::Blob.find(@repository, @commit.id, @path)
end
end
|