summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-11-03 06:56:26 -0400
committergitlabhq <m@gitlabhq.com>2011-11-03 06:56:26 -0400
commit3abd977822247581465ff6d6df52d2c08e8da508 (patch)
treece6e1c2a38bad61889f847b487d3a27675d47040 /app/models/note.rb
parent020e1a8eee37e6a0acba9833f8abb5dfc80eb248 (diff)
downloadgitlab-ce-3abd977822247581465ff6d6df52d2c08e8da508.tar.gz
fixed error with ascii error for dashboard
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