1 # Controller for viewing a file's blame
2 class Projects::BlobController < Projects::ApplicationController
6 before_filter :authorize_read_project!
7 before_filter :authorize_code_access!
8 before_filter :require_non_empty_project
11 @blob = @repository.blob_at(@commit.id, @path)
13 not_found! unless @blob