blob: b2b662e1b555a69b2d4097fc9e7a48c962b67eac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
# frozen_string_literal: true
class Reply < ActiveRecord::Base
scope :base, -> { all }
belongs_to :topic, -> { includes(:replies) }
belongs_to :developer
validates_presence_of :content
end
|