Defect #1050
closedmigrate_to_trac fails with: "''" is not a valid constant name!
100%
Description
rails 1.2.5, ruby 1.8 (OTOH), redmine svn.
I'm no ruby expert, so here is the traceback:
Migrating components......
Migrating milestones...
Migrating custom fields...
Migrating tickets.rake aborted!
"''" is not a valid constant name!
/var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/inflector.rb:247:in `constantize'
/var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/core_ext/string/inflections.rb:148:in `constantize'
/var/lib/gems/1.8/gems/activerecord-1.15.5/lib/active_record/associations/belongs_to_polymorphic_association.rb:46:in `association_class'
/var/lib/gems/1.8/gems/activerecord-1.15.5/lib/active_record/associations/belongs_to_polymorphic_association.rb:28:in `find_target'
/var/lib/gems/1.8/gems/activerecord-1.15.5/lib/active_record/associations/association_proxy.rb:131:in `load_target'
/var/lib/gems/1.8/gems/activerecord-1.15.5/lib/active_record/associations/association_proxy.rb:55:in `reload'
/var/lib/gems/1.8/gems/activerecord-1.15.5/lib/active_record/associations.rb:906:in `customized'
/home/kopernikus/redmine/app/models/custom_value.rb:23:in `after_initialize'
/var/lib/gems/1.8/gems/activerecord-1.15.5/lib/active_record/callbacks.rb:348:in `send'
/var/lib/gems/1.8/gems/activerecord-1.15.5/lib/active_record/callbacks.rb:348:in `callback'
/var/lib/gems/1.8/gems/activerecord-1.15.5/lib/active_record/callbacks.rb:227:in `initialize'
/home/kopernikus/redmine/config/../lib/tasks/migrate_from_trac.rake:375:in `new'
/home/kopernikus/redmine/config/../lib/tasks/migrate_from_trac.rake:375:in `migrate'
/home/kopernikus/redmine/config/../lib/tasks/migrate_from_trac.rake:362:in `each'
/home/kopernikus/redmine/config/../lib/tasks/migrate_from_trac.rake:362:in `migrate'
/home/kopernikus/redmine/config/../lib/tasks/migrate_from_trac.rake:655
/usr/lib/ruby/1.8/rake.rb:387:in `call'
/usr/lib/ruby/1.8/rake.rb:387:in `execute'
/usr/lib/ruby/1.8/rake.rb:387:in `each'
/usr/lib/ruby/1.8/rake.rb:387:in `execute'
/usr/lib/ruby/1.8/rake.rb:357:in `invoke'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:350:in `invoke'
/usr/lib/ruby/1.8/rake.rb:1906:in `run'
/usr/lib/ruby/1.8/rake.rb:1906:in `each'
/usr/lib/ruby/1.8/rake.rb:1906:in `run'
/usr/bin/rake:4
thanks,
k