Moved acts_as_tree to gemfile.
This commit is contained in:
parent
7fc0462fc4
commit
7e6ac8c924
13 changed files with 7 additions and 365 deletions
|
|
@ -1,9 +1,11 @@
|
|||
class Page < ActiveRecord::Base
|
||||
|
||||
include ActsAsTree
|
||||
|
||||
belongs_to :user, :foreign_key => 'updated_by'
|
||||
|
||||
acts_as_versioned version_column: :lock_version, limit: 20
|
||||
self.non_versioned_columns += %w(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