Moved acts_as_tree to gemfile.

This commit is contained in:
benni 2012-11-24 16:41:34 +01:00
parent 7fc0462fc4
commit 7e6ac8c924
13 changed files with 7 additions and 365 deletions

View file

@ -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