1 if RUBY_PLATFORM =~ /java/
4 require 'active_record/version'
12 if ActiveRecord::VERSION::MAJOR < 2
13 if defined?(RAILS_CONNECTION_ADAPTERS)
14 RAILS_CONNECTION_ADAPTERS << %q(jdbc)
16 RAILS_CONNECTION_ADAPTERS = %w(jdbc)
18 if ActiveRecord::VERSION::MAJOR == 1 && ActiveRecord::VERSION::MINOR == 14
19 require 'active_record/connection_adapters/jdbc_adapter'
22 require 'active_record'
23 require 'active_record/connection_adapters/jdbc_adapter'
26 warn "ActiveRecord-JDBC is for use with JRuby only"