diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-15 19:02:05 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-15 19:02:05 +0300 |
| commit | d74d7c7cfb49ead619d21e35f07b1feba8295118 (patch) | |
| tree | 13a87df76056f11512c9e8d4740d2aa2d1df2c39 /app/models/note.rb | |
| parent | 6a4a17f3399904b43275c4a2d53322cb2b011aca (diff) | |
| download | gitlab-ce-d74d7c7cfb49ead619d21e35f07b1feba8295118.tar.gz | |
Update app code to use Gitlab::Git::Diff
Diffstat (limited to 'app/models/note.rb')
| -rw-r--r-- | app/models/note.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 8274b866568..7b7e6e99df4 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -68,8 +68,8 @@ class Note < ActiveRecord::Base def diff if noteable.diffs.present? noteable.diffs.select do |d| - if d.b_path - Digest::SHA1.hexdigest(d.b_path) == diff_file_index + if d.new_path + Digest::SHA1.hexdigest(d.new_path) == diff_file_index end end.first end @@ -80,7 +80,7 @@ class Note < ActiveRecord::Base end def diff_file_name - diff.b_path + diff.new_path end def diff_new_line |
