app/models/group_topic_reply.rb

Summary

Maintainability
A
0 mins
Test Coverage
class GroupTopicReply < ActiveRecord::Base
  extend HasHtmlPipeline
  belongs_to :topic, class_name: 'GroupTopic', counter_cache: 'replies_count', foreign_key: 'group_topic_id'
  belongs_to :user
  validates :body, presence: true
  has_html_pipeline :body, :markdown
end