Skip to content

Commit

Permalink
removed direct dependency on ruby-plsql in oracle_enhanced_procedures
Browse files Browse the repository at this point in the history
  • Loading branch information
rsim committed Feb 23, 2010
1 parent e40dcfb commit 0815362
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
4 changes: 2 additions & 2 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
== 1.2.4 2010-02-23

* Enhancements
* added views, synonyms, packages, functions, procedures, indexes, triggers, types, primary, unique and foreign key contraints to structure dump
* Enhancements:
* added views, synonyms, packages, functions, procedures, indexes, triggers, types, primary, unique and foreign key constraints to structure dump
* added :temporary option for create_table to create temporary tables
* added :tablespace option for add_index
* support function based indexes in schema dump
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1621,15 +1621,7 @@ class CGI::Session::ActiveRecordStore::Session
end

# Load custom create, update, delete methods functionality
# rescue LoadError if ruby-plsql gem cannot be loaded
begin
require 'active_record/connection_adapters/oracle_enhanced_procedures'
rescue LoadError
if defined?(RAILS_DEFAULT_LOGGER)
RAILS_DEFAULT_LOGGER.info "INFO: ActiveRecord oracle_enhanced adapter could not load ruby-plsql gem. "+
"Custom create, update and delete methods will not be available."
end
end
require 'active_record/connection_adapters/oracle_enhanced_procedures'

# Load additional methods for composite_primary_keys support
require 'active_record/connection_adapters/oracle_enhanced_cpk'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
class_inheritable_accessor :custom_create_method, :custom_update_method, :custom_delete_method
end

require 'ruby_plsql'
require 'active_support'

module ActiveRecord #:nodoc:
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
end

require 'active_record/connection_adapters/oracle_enhanced_adapter'
require 'ruby-plsql'

module LoggerSpecHelper
def log_to(stream)
Expand Down

0 comments on commit 0815362

Please sign in to comment.