Limited page versions number to 20.

This commit is contained in:
Benjamin Meichsner 2009-12-01 20:20:41 +01:00
parent d31b40bd66
commit 164653dbfc

View file

@ -17,7 +17,7 @@ class Page < ActiveRecord::Base
belongs_to :user, :foreign_key => 'updated_by' belongs_to :user, :foreign_key => 'updated_by'
acts_as_versioned :version_column => :lock_version acts_as_versioned :version_column => :lock_version, :limit => 20
self.non_versioned_columns += ['permalink', 'created_at', 'title'] self.non_versioned_columns += ['permalink', 'created_at', 'title']
acts_as_tree :order => "title" acts_as_tree :order => "title"