Sha256: f92b395163542216cf968c7f7ece78836730370c0f24b3474c2a8d4f2d8c3776

Contents?: true

Size: 291 Bytes

Versions: 20

Compression:

Stored size: 291 Bytes

Contents

class Page < ActiveRecord::Base
  has_many :attachments
  validates_presence_of :title
  belongs_to :parent, :class_name=>'Page', :foreign_key=>'parent_id'
  has_many :children, :class_name=>'Page', :foreign_key=>'parent_id'
  acts_as_taggable

  scope :orphans, where(:parent_id=>nil)
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
wheels-0.0.42 app/models/page.rb
wheels-0.0.41 app/models/page.rb
wheels-0.0.40 app/models/page.rb
wheels-0.0.39 app/models/page.rb
wheels-0.0.38 app/models/page.rb
wheels-0.0.37 app/models/page.rb
wheels-0.0.36 app/models/page.rb
wheels-0.0.35 app/models/page.rb
wheels-0.0.34 app/models/page.rb
wheels-0.0.33 app/models/page.rb
wheels-0.0.32 app/models/page.rb
wheels-0.0.31 app/models/page.rb
wheels-0.0.30 app/models/page.rb
wheels-0.0.29 app/models/page.rb
wheels-0.0.28 app/models/page.rb
wheels-0.0.27 app/models/page.rb
wheels-0.0.26 app/models/page.rb
wheels-0.0.25 app/models/page.rb
wheels-0.0.24 app/models/page.rb
wheels-0.0.23 app/models/page.rb