OSDN Git Service

diff view on commit with parallel diff view
[wvm/gitlab.git] / app / controllers / projects / blob_controller.rb
1 # Controller for viewing a file's blame
2 class Projects::BlobController < Projects::ApplicationController
3   include ExtractsPath
4
5   # Authorize
6   before_filter :authorize_read_project!
7   before_filter :authorize_code_access!
8   before_filter :require_non_empty_project
9
10   def show
11     @blob = @repository.blob_at(@commit.id, @path)
12
13     not_found! unless @blob
14   end
15 end