Class: Comment

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ActsAsCommentable::Comment, Rostra::EmailNotifier, Rostra::TimestampObserver
Defined in:
app/models/comment.rb

Instance Method Summary collapse

Methods included from Rostra::TimestampObserver

included

Methods included from Rostra::EmailNotifier

included

Instance Method Details

#questionObject



15
16
17
# File 'app/models/comment.rb', line 15

def question
  commentable.question if commentable.is_a?(Rostra::Answer)
end