Skip to content
Browse files

Move improved diff to improved revision

  • Loading branch information...
1 parent b877970 commit 162e5c60c45a1e4889e6c9ce9cbe9dbda7e87fcf @dcramer committed Jun 2, 2010
View
12 app/controllers/repositories_controller.rb
@@ -3,15 +3,9 @@ class RepositoriesController < ApplicationController
before_filter :find_repository, :except => :edit
before_filter :find_project, :only => :edit
- before_filter :forward_to_diff, :only => :revision
- before_filter :improved_diff, :only => :diff
+ before_filter :improved_revision, :only => :revision
- def forward_to_diff
- redirect_to(:controller => "repositories", :action => "diff", :rev => params[:rev])
- return false
- end
-
- def improved_diff
+ def improved_revision
@changeset = @repository.find_changeset_by_name(@rev)
(show_error_not_found; return) unless @changeset
@@ -39,7 +33,7 @@ def improved_diff
show_error_not_found unless @diff
end
end
- render :template => "repositories/diff.html"
+ render :template => "repositories/revision.html"
return
end
end
View
0 app/views/repositories/diff.html → app/views/repositories/revision.html
File renamed without changes.

0 comments on commit 162e5c6

Please sign in to comment.
Something went wrong with that request. Please try again.