Added parent-child relationship to pages to visualize a breadcrump and subpages.
This commit is contained in:
parent
00619ccf55
commit
a8c93c08b7
24 changed files with 513 additions and 51 deletions
|
|
@ -19,6 +19,7 @@ class Page < ActiveRecord::Base
|
|||
|
||||
acts_as_versioned :version_column => :lock_version
|
||||
self.non_versioned_columns += ['permalink', 'created_at', 'title']
|
||||
acts_as_tree :order => "title"
|
||||
|
||||
attr_accessor :old_title # Save title to create redirect page when editing title
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue