jruby/activerecord-jdbc-adapter — pull request #227 by kares (2012-08-28 21:11:20+00:00)
Title: initial AR-4.0.0 (rails-master) compatibility

I ended up in a need to boot up rails-master with JRuby (actually due **jruby-rack** :)), since Rails master (most likely due a bug) does not allow an application to boot without AR I ended up monkey-patching activerecord-jdbc-adapter to make it work.

- please note that there were previous test failures, as much as I run tests (against various AR versions) I did not make more test fail than previously (thus hopefully no regressions for current stable AR).
- the most important change is the need to move the **xxx_connection** methods from `AR::Base` into `ActiveRecord::ConnectionHandling`.
- then there's the quite refactored *database.rake* task
- I've tested `rake appraisal:rails40` with jruby-master (not very recent) - seems there's a BigDecimal regression that will show up most times :

```
test_small_decimal(SQLite3TypeConversionTest):
TypeError: can't convert Fixnum into String
org/jruby/ext/bigdecimal/RubyBigDecimal.java:453:in `new'
/opt/local/rvm/rubies/jruby-head/lib/ruby/1.9/bigdecimal/util.rb:14:in `to_d'
/opt/local/rvm/gems/jruby-head@jruby-rack/bundler/gems/rails-1ec1eb2ff2ad/activerecord/lib/active_record/connection_adapters/column.rb:201:in `value_to_decimal'

```

did not look into these (and possibly others) as it seemed sufficient for now for my needs.

... hopefully this is still useful for upstream !