summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorCedric Gatay <cedric@gatay.fr>2011-12-24 17:28:20 +0100
committerCedric Gatay <cedric@gatay.fr>2011-12-24 17:28:20 +0100
commitc0b47d3245a15b12ebe7a6f4154f35ba91396c3c (patch)
treea9f99d01f42c8ac6366a5cf5902ce899ce12b598 /app/models/note.rb
parent89a43543e9c229c223ef4d3031e83dc35e3fd3c5 (diff)
downloadgitlab-ce-c0b47d3245a15b12ebe7a6f4154f35ba91396c3c.tar.gz
Alert commit author on note
Allows to alert only the commit author when a new note is added on a commit, useful when gitlabhq is used for code reviews, allows less noise with mails...
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 9a38cd77ffa..0248ceab8db 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -14,6 +14,7 @@ class Note < ActiveRecord::Base
attr_protected :author, :author_id
attr_accessor :notify
+ attr_accessor :notify_author
validates_presence_of :project
@@ -40,6 +41,10 @@ class Note < ActiveRecord::Base
def notify
@notify ||= false
end
+
+ def notify_author
+ @notify_author ||= false
+ end
end
# == Schema Information
#