I have a rails project where I have Globalize2, state_machine and some
other plugins in use. When trying to run migration scripts with JRuby
1.1.6 and RAILS_ENV=test or production I get a following error message:
A copy of Globalize::Model::ActiveRecord::Translated::ActMethods has
been removed from the module tree but is still active!
Script causing the error is:
class CreateUnits < ActiveRecord::Migration
create_table :units do |t|
Unit.create_translation_table! :name => :string, :abbreviation
With RAILS_ENV=development migration goes ok.
MRI works ok, with all environments, JRuby 1.1.5 works with all
environments, JRuby trunk from a week ago failed.
If I change config.cache_classes to false, then the test and
production environmets works.
If state_machine plugin is disabled, it works.
Some dummy project where I used similiar model and migration, worked
also with 1.1.6.
On the other machine the migrations worked with 1.1.6. I copied the
jruby directory from that machine and it failed on my machine.
Anyone have ideas whats wrong or how to debug more?
To unsubscribe from this list, please visit: