summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
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 645bc7cec12..3c59efefb1b 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -7,6 +7,11 @@ class Note < ActiveRecord::Base
belongs_to :author,
:class_name => "User"
+ delegate :name,
+ :email,
+ :to => :author,
+ :prefix => true
+
attr_protected :author, :author_id
validates_presence_of :project