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:
parent
58610ec52a
commit
d1a3fbea40
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue