Fixed before_filter for edit

This commit is contained in:
Dmitriy Zaporozhets 2013-04-03 17:06:28 +03:00
parent 727d229e28
commit b1117dacbb

View file

@ -7,7 +7,7 @@ class EditTreeController < ProjectResourceController
before_filter :authorize_code_access!
before_filter :require_non_empty_project
before_filter :edit_requirements, only: [:edit, :update]
before_filter :edit_requirements, only: [:show, :update]
def show
@last_commit = @project.repository.last_commit_for(@ref, @path).sha