Class: Issue::Comment

Inherits:
ActiveResource::Base
  • Object
show all
Includes:
Gravtastic
Defined in:
app/models/issue/comment.rb

Instance Method Summary collapse

Instance Method Details

#user_emailObject



19
20
21
22
23
24
25
# File 'app/models/issue/comment.rb', line 19

def user_email
  if commenter_id
    commenter.email
  else
    super
  end
end

#user_nameObject



11
12
13
14
15
16
17
# File 'app/models/issue/comment.rb', line 11

def user_name
  if commenter_id
    commenter.username
  else
    super
  end
end