diff options
| author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-17 17:45:32 -0200 |
|---|---|---|
| committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-20 12:12:05 -0200 |
| commit | 1d476b0656b3ec24e264d7a7c30bdca83704b3bd (patch) | |
| tree | d1cdb1b22c0f1365efd80a0485e25b1ecfaf7735 /app/models/note.rb | |
| parent | 14fc05ebfdfb6654859ee6f57aa462420a6bcb56 (diff) | |
| download | gitlab-ce-1d476b0656b3ec24e264d7a7c30bdca83704b3bd.tar.gz | |
Create a pending task when a user is mentioned on a note
Diffstat (limited to 'app/models/note.rb')
| -rw-r--r-- | app/models/note.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index b3809ad81e0..73412024f4e 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -37,6 +37,8 @@ class Note < ActiveRecord::Base belongs_to :author, class_name: "User" belongs_to :updated_by, class_name: "User" + has_many :tasks, dependent: :delete_all + delegate :name, to: :project, prefix: true delegate :name, :email, to: :author, prefix: true |
