Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.712 kb
# define railtie which will be executed in Rails 3
if defined?(::Rails::Railtie)
module ActiveRecord
module ConnectionAdapters
class OracleEnhancedRailtie < ::Rails::Railtie
rake_tasks do
load 'active_record/connection_adapters/oracle_enhanced.rake'
end
ActiveSupport.on_load(:active_record) do
require 'active_record/connection_adapters/oracle_enhanced_adapter'
# Cache column descriptions between requests in test and production environments
if Rails.env.test? || Rails.env.production?
ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.cache_columns = true
end
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.