Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit dbc6ca329fc9d7913c084e55a25c9e08452c075d @dcramer committed Jun 2, 2010
Showing with 24 additions and 0 deletions.
  1. +10 −0 app/controllers/repositories_controller.rb
  2. +12 −0 init.rb
  3. +1 −0 install.rb
  4. +1 −0 uninstall.rb
@@ -0,0 +1,10 @@
+class RepositoriesController < ApplicationController
+ unloadable
+
+ before_filter :forward_to_diff, :only => :revision
+
+ def forward_to_diff
+ redirect_to(:controller => "repositories", :action => "diff", :rev => params[:rev])
+ return false
+ end
+end
@@ -0,0 +1,12 @@
+require 'redmine'
+
+Redmine::Plugin.register :forward_to_diffs do
+ name 'Forward to Diffs'
+ author 'Disqus (David Cramer)'
+ url 'http://github.com/dcramer/forward-to-diffs'
+ author_url 'http://www.disqus.com/'
+ description 'Forward to the diffs pane when viewing a revision.'
+ version '0.1'
+
+ requires_redmine :version_or_higher => '0.8.0'
+end
@@ -0,0 +1 @@
+# Install hook code here
@@ -0,0 +1 @@
+# Uninstall hook code here

0 comments on commit dbc6ca3

Please sign in to comment.