nullobject/rein — Issue #6: Rails 3.2 incompatibility
Author: ares
Created: 2012-02-01 12:17:29+00:00
State: open

I got superclass mismatch for class Mysql2Adapter (TypeError) error when using this gem with Rails 3.2.*

trace

/home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activerecord-3.2.1/lib/active_record/connection_adapters/mysql2_adapter.rb:23:in `': superclass mismatch for class Mysql2Adapter (TypeError)
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activerecord-3.2.1/lib/active_record/connection_adapters/mysql2_adapter.rb:22:in `'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activerecord-3.2.1/lib/active_record/connection_adapters/mysql2_adapter.rb:6:in `'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:48:in `resolve_hash_connection'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:39:in `resolve_string_connection'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:23:in `spec'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:127:in `establish_connection'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activerecord-3.2.1/lib/active_record/railtie.rb:76:in `block (2 levels) in '
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/lazy_load_hooks.rb:26:in `on_load'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activerecord-3.2.1/lib/active_record/railtie.rb:74:in `block in '
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/ares/admin/config/environment.rb:5:in `'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.2.1/lib/rails/application.rb:103:in `require_environment!'
from /home/ares/.rvm/gems/ruby-1.9.3-p0@rails3/gems/railties-3.2.1/lib/rails/commands.rb:40:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'