gitlab-org--gitlab-foss/app/controllers/projects/tree_controller.rb
Dmitriy Zaporozhets 160bd862be
Refactoring for EditTree and NewTree controllers and contexts
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-11-05 12:21:11 +02:00

12 lines
321 B
Ruby

# Controller for viewing a repository's file structure
class Projects::TreeController < Projects::BaseTreeController
def show
return not_found! if tree.entries.empty?
respond_to do |format|
format.html
# Disable cache so browser history works
format.js { no_cache_headers }
end
end
end