Limited page versions number to 20.
This commit is contained in:
parent
d31b40bd66
commit
164653dbfc
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue