Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

6 lines (5 sloc) 0.215 kB
class Document < ActiveRecord::Base
has_many :children, :class_name => "Document", :foreign_key => 'parent_id'
belongs_to :parent, :class_name => "Document", :foreign_key => 'parent_id'
belongs_to :author
end
Jump to Line
Something went wrong with that request. Please try again.