Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (6 sloc) 0.287 kb
class Topic < ActiveRecord::Base
has_many :replies, :dependent => :destroy, :order => 'replies.created_at DESC'
belongs_to :project
scope :mentions_activerecord, :conditions => ['topics.title LIKE ?', '%ActiveRecord%']
scope :distinct, :select => "DISTINCT #{table_name}.*"
end
Jump to Line
Something went wrong with that request. Please try again.