From 193b2450f47a8e6eb9f6ff6fc5a6895e469b78eb Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 24 May 2008 17:58:34 +0000 Subject: Fixed: View differences for individual file of a changeset fails if the subversion repository URL doesn't point to the repository root (#1209, #1262, #1275). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1446 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/change.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/change.rb') diff --git a/app/models/change.rb b/app/models/change.rb index d14f435a4..385fe5acb 100644 --- a/app/models/change.rb +++ b/app/models/change.rb @@ -19,4 +19,8 @@ class Change < ActiveRecord::Base belongs_to :changeset validates_presence_of :changeset_id, :action, :path + + def relative_path + changeset.repository.relative_path(path) + end end -- cgit v1.2.3