diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-24 17:58:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-24 17:58:34 +0000 |
commit | 193b2450f47a8e6eb9f6ff6fc5a6895e469b78eb (patch) | |
tree | 2f4c94520013c1128eee646dd31c43cd6962cfb6 /app/models/change.rb | |
parent | 9d4e71adf35656c5a06d782b24502fa121ff10b2 (diff) | |
download | redmine-193b2450f47a8e6eb9f6ff6fc5a6895e469b78eb.tar.gz redmine-193b2450f47a8e6eb9f6ff6fc5a6895e469b78eb.zip |
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
Diffstat (limited to 'app/models/change.rb')
-rw-r--r-- | app/models/change.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |