summaryrefslogtreecommitdiff
path: root/app/models/snippet.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2011-12-08 01:35:57 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2011-12-08 01:35:57 +0200
commit23a1ba7362a13dfcde05d158f2d2237351090730 (patch)
tree03e66f165f564bc58bd219c80abc9f6c56c15561 /app/models/snippet.rb
parent72a13fcc2e847e551fd2a2be4b45000962374c7b (diff)
downloadgitlab-ce-23a1ba7362a13dfcde05d158f2d2237351090730.tar.gz
Fix different styles/button positions
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r--app/models/snippet.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb
index 5c61cf1c543..6db5e2dde70 100644
--- a/app/models/snippet.rb
+++ b/app/models/snippet.rb
@@ -5,6 +5,10 @@ class Snippet < ActiveRecord::Base
belongs_to :author, :class_name => "User"
has_many :notes, :as => :noteable
+ delegate :name,
+ :email,
+ :to => :author,
+ :prefix => true
attr_protected :author, :author_id, :project, :project_id
validates_presence_of :project_id