Extend models functionality with old decorator methods. Use Repository model
This commit is contained in:
parent
b53557aca6
commit
bbfbff3add
7 changed files with 67 additions and 11 deletions
|
@ -3,7 +3,6 @@ module Emails
|
|||
def note_commit_email(recipient_id, note_id)
|
||||
@note = Note.find(note_id)
|
||||
@commit = @note.noteable
|
||||
@commit = CommitDecorator.decorate(@commit)
|
||||
@project = @note.project
|
||||
mail(to: recipient(recipient_id), subject: subject("note for commit #{@commit.short_id}", @commit.title))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue