RAILS_GEM_VERSION = '1.2.3' unless defined? RAILS_GEM_VERSION require File.join(File.dirname(__FILE__), 'boot') if RAILS_ENV =~ /jdbc/ require 'rubygems' begin gem 'activerecord-jdbc-adapter' rescue nil rescue Gem::LoadError => e begin gem 'ActiveRecord-JDBC' rescue Gem::LoadError => e require 'jdbc_adapter' end end end Rails::Initializer.run do |config| config.frameworks -= [ :action_web_service, :action_mailer ] config.load_paths << "#{RAILS_ROOT}/app/constants" config.action_controller.session_store = :active_record_store if RUBY_PLATFORM =~ /java/ config.plugins = %w(jrubyworks will_paginate) else config.plugins = %w(will_paginate) end end Object.send :undef_method, :id