= activerecord-oracle_enhanced-adapter * http://rubyforge.org/projects/oracle-enhanced/ == DESCRIPTION: Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases from Rails which are extracted from current real projects' monkey patches of original Oracle adapter. See http://blog.rayapps.com for more information. Look ar RSpec tests under spec directory for usage examples. == FEATURES/PROBLEMS: == SYNOPSIS: In Rails config/database.yml file use oracle_enhanced as adapter name. Create config/initializers/oracle_advanced.rb file in your Rails application and put configuration options there. The following configuration options are available: * set to true if columns with DATE in their name should be emulated as Date (and not as Time which is default) ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.emulate_dates_by_column_name = true * set to true if columns with ID at the end of column name should be emulated as Fixnum (and not as BigDecimal which is default) ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.emulate_integers_by_column_name = true * set to true if CHAR(1), VARCHAR2(1) columns or or VARCHAR2 columns with FLAG or YN at the end of their name should be emulated as booleans (and do not use NUMBER(1) as type for booleans which is default) ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.emulate_booleans_from_strings = true == REQUIREMENTS: * Works with ActiveRecord version 2.0 (which is included in Rails 2.0) * Requires ruby-oci8 library to connect to Oracle == INSTALL: * sudo gem install activerecord-oracle_enhanced-adapter == LICENSE: (The MIT License) Copyright (c) 2008 Graham Jenkins, Michael Schoen, Raimonds Simanovskis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.