Class: Comment

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

Instance Method Summary collapse

Instance Method Details

#user_emailObject



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

def user_email
  if commenter_id
    commenter.email
  else
    super
  end
end

#user_nameObject



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

def user_name
  if commenter_id
    commenter.username
  else
    super
  end
end