Class: Bulb::BlobController
- Inherits:
-
BulbController
- Object
- ApplicationController
- BulbController
- Bulb::BlobController
- Defined in:
- app/controllers/bulb/blob_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/controllers/bulb/blob_controller.rb', line 6 def show @git_repository = @repository.git_repository @blob_hash = @git_repository.head.target.tree.path(params[:path]) redirect_to repository_tree_path if @blob_hash[:type] == :tree @blob = @git_repository.lookup(@blob_hash[:oid]) end |