Upgrade to rails 3.2.9. Moved acts_as_versioned to gem.

This commit is contained in:
benni 2012-11-24 16:36:40 +01:00
parent 7c9d666909
commit 7fc0462fc4
28 changed files with 44 additions and 1617 deletions

View file

@ -2,8 +2,8 @@ class Page < ActiveRecord::Base
belongs_to :user, :foreign_key => 'updated_by'
acts_as_versioned :version_column => :lock_version, :limit => 20
self.non_versioned_columns += ['permalink', 'created_at', 'title']
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