diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-08 01:35:57 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-08 01:35:57 +0200 |
commit | 23a1ba7362a13dfcde05d158f2d2237351090730 (patch) | |
tree | 03e66f165f564bc58bd219c80abc9f6c56c15561 /app/models/snippet.rb | |
parent | 72a13fcc2e847e551fd2a2be4b45000962374c7b (diff) | |
download | gitlab-ce-23a1ba7362a13dfcde05d158f2d2237351090730.tar.gz |
Fix different styles/button positions
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 4 |
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 |