1 2 3 4 5 6 7
class Reply < ActiveRecord::Base scope :base belongs_to :topic, :include => [:replies] belongs_to :developer validates_presence_of :content end