Fixed Trac importer error with Rails 2.0: readonly? is defined by ActiveRecord.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@995 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-12-14 21:31:30 +00:00
parent 58610ec52a
commit d1a3fbea40
1 changed files with 5 additions and 0 deletions

View File

@ -145,6 +145,11 @@ namespace :redmine do
class TracWikiPage < ActiveRecord::Base
set_table_name :wiki
def self.columns
# Hides readonly Trac field to prevent clash with AR readonly? method (Rails 2.0)
super.select {|column| column.name.to_s != 'readonly'}
end
end
class TracPermission < ActiveRecord::Base