diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-29 09:03:03 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-29 09:03:03 +0000 |
commit | 0344719482d47c7e69761c6f2d550f3cd98efa93 (patch) | |
tree | a439dbe1a2e17cbb4702972579841ea682e5443a /lib | |
parent | 22c9a438993ba365d2d66d32bd87941b512f4b1a (diff) | |
download | redmine-0344719482d47c7e69761c6f2d550f3cd98efa93.tar.gz redmine-0344719482d47c7e69761c6f2d550f3cd98efa93.zip |
Makes importer work with Trac 0.8.x (#1540).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1597 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/migrate_from_trac.rake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tasks/migrate_from_trac.rake b/lib/tasks/migrate_from_trac.rake index 4226d79c0..50048634b 100644 --- a/lib/tasks/migrate_from_trac.rake +++ b/lib/tasks/migrate_from_trac.rake @@ -98,6 +98,11 @@ namespace :redmine do nil end end + + def description + # Attribute is named descr in Trac v0.8.x + has_attribute?(:descr) ? read_attribute(:descr) : read_attribute(:description) + end end class TracTicketCustom < ActiveRecord::Base |