Extend models functionality with old decorator methods. Use Repository model

This commit is contained in:
Dmitriy Zaporozhets 2013-03-31 23:48:12 +03:00
parent b53557aca6
commit bbfbff3add
7 changed files with 67 additions and 11 deletions

View file

@ -13,7 +13,6 @@ class CommitLoadContext < BaseContext
if commit
commit = Commit.new(commit)
commit = CommitDecorator.decorate(commit)
line_notes = project.notes.for_commit_id(commit.id).inline
result[:commit] = commit